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

relativeFile not working on Windows #21

Open
saeldion opened this issue Nov 12, 2018 · 0 comments
Open

relativeFile not working on Windows #21

saeldion opened this issue Nov 12, 2018 · 0 comments

Comments

@saeldion
Copy link

the variable ${relativeFile} is not working for me on Windows 10.

"cmd": "echo '${relativeFile}'" results in this string: '.d:\Development\project\file'.
Had a quick look in the code and it appears that rootFolder.uri.path is a path with forward-slashes while document.fileName is a path with backslashes. This results in the line document.fileName.replace(root, "") not actually replacing anything.

I noticed that rootFolder.uri.fsPath has the correct slashed. But since I'm on Windows I don't know how changing this would affect the other platforms.

Not sure how actively this is looked upon. But I just thought I should report the issue

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

No branches or pull requests

1 participant