Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix usage of extname, dirname when there is no project path #1067

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rly
Copy link

@rly rly commented Jun 12, 2020

Fix #115 and all the many other duplicates.

When Atom is opened without a project, atom.project.getPaths()[0] is undefined and raises an error in the Atom deprecation cop. Return @userHome in this case. Do not return null because functions downstream of getCwd expect a string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

path.extname is deprecated.
1 participant