简体   繁体   中英

Why add missing import open new tab with the same file in vscode?

Hi I have an issue with my ide vscode from some time (like 2weeks ago it was all fine !) I searched but didnt found.

when im missing some import in vscode in my angular project but onlt in few components (not all ? ) When i chose 'add missing import' or 'add all missing imports' instead of just adding it at the top - it opens new tab with the same file and added imports. what I did wrong ? I splited so you can see that from the top is still missing so red underline after clicked add all... but on bottom it is automaticly opened second tab of the same file and with imports.

please advice

i tryied reinstalling / removing all extensiont / deleted config. 在此处输入图片说明

thanks

edit

the solution i figured out is rename modules to Modules folder... (does not known why ) or rename component - in this screen Module name was the same as component name. also i does not known why this is issue for ide... ?

yep it is naming issue - in soem service now i have same issue, when it open in second tab it open same file but showing name of file starting from uppercase. if i changed this file name to Upercase first letter and it is fine - where search for issue ? could it be node.js some sase sensitive / insensitive settings ? regards

This a bug in VS Code 1.38 related to path case. The file you have on top as a lowercase modules while the one below has an uppercase Modules

The issue is tracked here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM