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
7.0 regression: prepareRename placeholder includes quotes and bracketsΒ #65444
range covers only b without the quotes, but placeholder is 'b' with the quotes.
The LSP specification defines the result of prepareRename as Range | { range: Range, placeholder: string } | { defaultBehavior: boolean } | null, where placeholder is "a placeholder text of the string content to be renamed" (specification). VS Code prefills the input with placeholder if it is given, or with the text in range otherwise (source). Therefore, the input is prefilled with 'b' at obj.b.
In my opinion, placeholder in the prepareRename response should be a string without quotes or brackets. That is, the response above should have "placeholder": "b".
changed the title [-]7.0 regression: `prepareRename` placeholder includes quotes and brackets (e.g. `'b'`, `['c']`)[/-][+]7.0 regression: `prepareRename` placeholder includes quotes and brackets[/+]on Nov 11, 2026
Activity
[-]7.0 regression: `prepareRename` placeholder includes quotes and brackets (e.g. `'b'`, `['c']`)[/-][+]7.0 regression: `prepareRename` placeholder includes quotes and brackets[/+]