-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
go to definition reopening same file, but changes Path casing. #17612
Comments
renaming the folders to all lowercase seems to have removed the second file opening. |
@gregatcssi Can you share your |
Thanks Jrieken. I didn't configure Code to be case sensitive, unless that was defined by default. tsconfig.json is
|
Not really able to reproduce with a small sample... Are you using a special version of TypeScript, e.g. not the one ship by default? Iff so a small indication will show in the status bar. Passing this one to @mjbvz and @bpasero because TypeScript shouldn't return such references and the workbench should resolve the real path before showing the same file as two different files |
There is no API to get the "real path" of a path in node.js. They tried to add it, but failed miserably. TypeScript should try harder to return the path as it is on disk to avoid these issues. |
I updated TSC a little while ago, so the bottom right is showing Typescript 2.0.3 along with cmd and package.json. Not sure if this is going to help, but i'm going to update the angular-cli version to beta 24 to see if there are any updates there which might help this. it's also using 2.0.3. |
If you are still having trouble reproducing I think I have something reproducible. Just to be sure it seems this is only a Windows issue.
Then it's possible to open both files. |
For anyone seeing this issue while working with JavaScript or TypeScript, can you please try collecting a TypeScript server trace to help us track down what may be going wrong here:
Thanks |
This issue has been closed automatically because it needs more information and has not had recent activity. Please refer to our guidelines for filing issues. Thank you for your contributions. |
Steps to Reproduce:
(mine is under src\app\Services\movieModel.ts)
for me both are listed as open and require to be saved. if i save the wrong one when closing it basically overwrites all the work i did in the one which is supposed to be saved.
The text was updated successfully, but these errors were encountered: