Skip to content

Change getFilePath to use Node's path library #63

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

Merged
merged 5 commits into from
Dec 1, 2019

Conversation

hellocontrol-bng
Copy link
Contributor

Previous code used explicit path slash to determine the folder path of a file, which only works if the OS in question uses that type of slash. Node's path library is OS-agnostic and avoids these issues.

Also of note, the catch here was using console.log instead of logger.log, which seemed wrong, but feel free to correct.

Fixes #62

jakelauer and others added 5 commits November 20, 2019 17:19
Previous code used explicit path slash to determine the folder path of a file, which only works if the OS in question uses that type of slash. Node's path library is OS-agnostic and avoids these issues.
This reverts commit 9b118e9.
@mrmckeb
Copy link
Owner

mrmckeb commented Dec 1, 2019

Thanks @hellocontrol-bng, thanks for the improvement. I'll release this today!

@mrmckeb mrmckeb merged commit c3d410b into mrmckeb:develop Dec 1, 2019
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.

Using plugin breaks Visual Studio TSServer functionality
3 participants