Import uses old filename casing
See original GitHub issueVS Code version: Code - Insiders 1.26.0-insider (c86cab2211d6dce686e5c89934d915b1e020ba9e, 2018-08-02T05:12:16.245Z) OS version: Darwin x64 17.7.0
Verifying #50505
foo.ts:
baz();
bar.ts:
export function baz() {
}
- Run ‘import from bar.ts’ code action in foo.ts
- Undo
- Rename bar.ts to Bar.ts
- Run ‘import from bar.ts’ code action again -> Import uses lowercase ‘bar’ instead of ‘Bar’
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:8
Top Results From Across the Web
Changing the capitalization of a filename causes auto-import ...
Steps to Reproduce: Use auto-import in a file named "file.ts"; Change the name of "file.ts" to "File.ts"; Try to auto-import again and see...
Read more >VSCode emmet issue after changing case for file name
I am new to using VSCode and emmet for expanding filenames, etc. ... it imports the old filename myfile.jsx (without the updated casing)....
Read more >Solved: Filename importing problem - SAS Communities
Solved: Hi SAS Users, Today I ran a macro, %macro ImportAndTranspose( File= , cur= , outf= , StartSheet= , EndSheet= ); I have...
Read more >File path formats on Windows systems | Microsoft Learn
This topic discusses the formats for file paths that you can use on ... Both specify the optional volume specifier ( C: in...
Read more >fnmatch — Unix filename pattern matching — Python 3.11.1 ...
... are documented in the re module). The special characters used in shell-style wildcards are: ... import fnmatch import os for file in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m not entirely sure if this is a valid workaround or if it’s a red herring so sorry if it is, but I just had the same issue after accidentally renaming a svelte file from camel cased to pascal cased. I closed VSCode, ran
yarn cache clean
and now it seems to be correctly auto-importing the new name.Here as well.
npm cache clean
solves the issue!