dawsbot / RelativePath

VSCode Relative path plugin
https://marketplace.visualstudio.com/items?itemName=jakob101.RelativePath
MIT License
69 stars 22 forks source link

Remove removeLeadingDot option, making it the default #18

Closed sverrejoh closed 7 years ago

sverrejoh commented 7 years ago

The leading dot is redundant, and should never be there. Some IDE's rightfully complain about this.

kristofferremback commented 7 years ago

This will make the extension harder to use for javascript (and probably other js-like languages such as TypeScript) as it will provide incorrect module paths for sibling files.

sverrejoh commented 7 years ago

What do you mean with "incorrect module paths for sibling files"?

Why isn't ./../foo.js and ../foo.js always the same?

kristofferremback commented 7 years ago

Oh wait, sorry I misread. You're correct with ./../foo.js being odd. I was talking about ./foo and foo...