-
Notifications
You must be signed in to change notification settings - Fork 765
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 symbol (F2) to rename one variable name fully mess your whole script #2367
Comments
@neuf-de-pixel I can't repro the issue. can you provide a log for us to take a look? here are instructions on how to get logs - https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#filing-an-issue also, it would be nice if you can share the file that showing the issue (especially if it is line ending or char code issue) |
@neuf-de-pixel I kind of repro this today, for me, it was due to multiple extensions (Pylance and other python tool) trying to do rename that messed up the file. once I disable/uninstall those conflicting extensions and leave only Pylance in vscode, it worked as expected. have you checked if you uninstall/disable all other extensions and leave pylance only, this still repro? |
I will close this issue. please re-open if it repro with latest pylance. |
Hi, If someone is looking for a solution please check this other issue: microsoft/vscode-python#17123
|
Behaviour
Expected vs. Actual
Expected : using F2 does allow to JUST rename variable names
Actual : using F2 to rename variable names and ADD blank lines to your script (or mess it up completely if you do it twice)
Steps to reproduce:
Python extension v2022.0.1814523869
Python version installed 3.10.0
VS Code 1.64.1
Example :
Before renaming anything:
After renaming the "white" variable to "wwhite":
Then after renaming again a variable name (here "blue" to "bllue"):
Diagnostic data
python.languageServer
setting: DefaultUser Settings
The text was updated successfully, but these errors were encountered: