Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

msbuild formatter should change / to \ in paths #2977

Closed
PeterStaev opened this issue Jun 30, 2017 · 1 comment
Closed

msbuild formatter should change / to \ in paths #2977

PeterStaev opened this issue Jun 30, 2017 · 1 comment

Comments

@PeterStaev
Copy link

Bug Report

  • TSLint version: 5.4.3
  • TypeScript version:2.4.1
  • Running TSLint via: Visual Studio

I'm using tslint withing VS Enterprise 2017 with the msbuild formatter. Although the errors get reported correctly in the Error List window if you double click on one of them it opens the file but does not go to the line where the error happens. This is because the path are using unix style slashes so they look something like:
T:/Projects/Test/test.ts
Which seems to mess up the auto navigate to the error. if the path is changed to:
T:\Projects\Test\test.ts
The correct line is opened.

@JoshuaKGoldberg
Copy link
Contributor

+1 to \s on Windows. -1 to \s on Mac/Linux, which MSbuild also runs on.

The formatter should change the slash type to the native OS'.

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

No branches or pull requests

3 participants