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

VSCode opens the same file in multiple editors if the names use different cases #17967

Closed
wm1 opened this issue Dec 31, 2016 · 1 comment
Closed
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@wm1
Copy link

wm1 commented Dec 31, 2016

  • VSCode Version: 1.8.1
  • OS Version: Windows 10

Steps to Reproduce:

  1. Create a file named LICENSE.txt

  2. Run "Code --reuse-window LICENSE.txt"

  3. Run "Code --reuse-window license.txt"

  4. Observe that VSCode opens 2 editor windows.

  5. Expect: VSCode detects the two file names are actually the same file, and only opens one file instead.

    case

This is especially annoying when dealing with MSVC project, when click the build error message and a new window is opened.

  1. Create a C++ project. The file name contains mixed upper and lower case. Open the file d:\git\Test\Main.cpp in editor
  2. Create a task.json and use msbuild to build the project
  3. Build. Assume there is an syntax error like the following. Notice that cl.exe converts filename to lower case
    d:\git\test\main.cpp(10): error C2144: syntax error: 'int' should be preceded by ';' [d:\git\Test\Test.vcxproj]
  4. Click the status "Problem" icon. Select the error message from the panel. The main.cpp is opened in editor, right next to Main.cpp
@bpasero
Copy link
Member

bpasero commented Jan 3, 2017

Let's merge into #12448

@bpasero bpasero closed this as completed Jan 3, 2017
@bpasero bpasero added the *duplicate Issue identified as a duplicate of another issue(s) label Jan 3, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants