-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
editor.renameOnType
causes unwanted renaming outside of HTML tags
#110983
Comments
Am experiencing something similar, but more annoyingly in Typescript with |
Same with typescript generic types. |
That's how the feature is meant to work and you should be using |
@jrieken in JS rename on type will be very useful in the same way as in HTML - edit JSX tags. // "[typescript]" or
"[javascript]": {
"editor.renameOnType": false
} it obviously disables it in all areas and won't be possible in JSX as well. |
We will nuke the current TS implementation and rework the API and setting. This isn't about rename (in the sense of the rename refactoring) but about "linked cursors". See #109923 (comment) as related discussion. E.g the isn't really a language feature but merely an editor feature |
@jrieken thank you for clarification. Will look for new implementation/settings, in the meantime will disable it for specific languages. |
Version: 1.52.0-insider (user setup)
Commit: a36c68b
Date: 2020-11-19T05:37:52.577Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.19042
WSL2
Remote-WSL: 0.51.3
Steps to Reproduce:
"editor.renameOnType": true
in settings.bar
.renameOnType
handler to select all occurrences ofbar
.bar
on line 6.Expected:
Only
bar
on line 6 is deleted, as it is not an HTML tag.Issue:
All instances of
bar
are deleted.See:
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: