-
Notifications
You must be signed in to change notification settings - Fork 178
Open
Labels
Description
(feature request)
In webstorm, when you rename the default export of a file, it asks you if you want to also rename the file name (and references to that export in other files). It's a pretty nice feature.
Example:
/// file://MyDefaultExport.ts
export default function MyDefaultExport() {
return 10;
}-
Rename request
MyDefaultExport-->MyDefaultExport2 -
Expected: typescript-langauge-server would:
- Return a
WorkspaceEditcontaining changes to renameMyDefaultExport-->MyDefaultExport2in the file (it does this) - Checks the client's capabilities for
workspaceEdit.resourceOperationsand returns aWorkspaceEditcontaining a rename forMyDefaultExport.ts-->MyDefaultExport2.ts(it does not do this), as well as corresponding renames in other files
/// file://MyDefaultExport2.ts
export default function MyDefaultExport2() {
return 10;
}Do you think this may be something typescript-language-server could support?
flexchar