You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In other words, F2 in VS Code on "./foo", "./foo.ts, and './bar' should allow me to rename the file if it originates from the appropriate workspace. Ideally this doesn't mess with .d.ts files that aren't considered hand-authored, but that's tough to differentiate.
My expectations:
we should maintain the extension for the new file if unspecified in the import/export specifier (i.e. keep it as .js, .jsx, .ts, .tsx if not mentioned in the resulting string)
we should change the extension if explicitly specified in the new specifier
for affected import/export specifiers, we should maintain whether or not an extension was ever specified.
The text was updated successfully, but these errors were encountered:
I want to be able to rename a file based on an import or export specifier:
In other words, F2 in VS Code on
"./foo"
,"./foo.ts
, and'./bar'
should allow me to rename the file if it originates from the appropriate workspace. Ideally this doesn't mess with.d.ts
files that aren't considered hand-authored, but that's tough to differentiate.My expectations:
.js
,.jsx
,.ts
,.tsx
if not mentioned in the resulting string)The text was updated successfully, but these errors were encountered: