Skip to content

Can't Refactor -> Rename a default export name in Visual Studio #3065

Description

@jasonscharf

Hi. I'm using VS 2013 and TypeScript 1.5 Beta. Amazing work, as always.

I can't seem to rename default exports via "Rename". Consider this:

export default class InfoPanelViewModel {
}
  • Invoke the Rename operation
  • Punch in a new name, submit via click or return
  • Notice no change in the symbol's name

Doing a Refactor -> Rename does nothing. Tested with function, seems to be for anything export default. Removing the default keyword allows me to rename the symbol. Adding it back prevents it again.

Is this by design, or a bug? If it's by design, perhaps a warning or error would be useful.

Metadata

Metadata

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions