Skip to content

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