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
{{ message }}
Repository navigation
String literal rename doesn't work with template literals #41922
There are other cases when string literal rename refactor (#39298) deosn't work
Example:
typeFoo='donald'|'joe'// allow to rename any of these valuesconstfoo: Foo='joe'// using string literal:consttemp: `hello ${Foo}` =`hello donald`
After literals rename:
Actual
typeFoo='donald duck'|'pizza joe'// allow me to rename any of these values// just declarationconstfoo: Foo='pizza joe '// this works// using string literalconsttemp: `hello ${Foo}` =`hello donald`// this doesn't work
Expected:
// using string literalconsttemp: `hello ${Foo}` =`hello donald duck`// should rename here too
Activity
RyanCavanaugh commentedon Dec 3, 2025
Closing language service bugs related to the 6.0 implementation. For more information, see #62827