Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename and fine all references of Typescript's string literal values #4469

Closed
zivni opened this issue Mar 20, 2016 · 1 comment
Closed

Rename and fine all references of Typescript's string literal values #4469

zivni opened this issue Mar 20, 2016 · 1 comment

Comments

@zivni
Copy link

zivni commented Mar 20, 2016

Type script string literals allow to have a code such as

//interfaces.d.ts
type Options = "option 1 " | "option 2" 

//file.ts
let myOption: Options = "option 1" // "option 3" will give us an error, right in the IDE.

It would be nice to be able to rename and find all references of a specific value. e.g. find/rename all occurrences of "option 1". Currently we can only find the references of the type itself.

@dbaeumer
Copy link
Member

This issue was moved to microsoft/TypeScript#7611

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants