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 Symbol" messes up the script layout #229097

Closed
felixxxlife opened this issue Sep 19, 2024 · 5 comments
Closed

"Rename Symbol" messes up the script layout #229097

felixxxlife opened this issue Sep 19, 2024 · 5 comments
Assignees
Labels
*caused-by-extension Issue identified to be caused by an extension info-needed Issue requires more information from poster

Comments

@felixxxlife
Copy link

Type: Bug

When using "rename symbol" (or F2 function key) to rename a variable in my script, the layout of the script is all messed up with a lot of blanks added in between every line of my code.

VS Code version: Code 1.93.1 (38c31bc, 2024-09-11T17:20:05.685Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz (8 x 2208)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 15.61GB (5.50GB free)
Process Argv --file-uri file:///g%3A/Analytics/Budget/Deposit%20Budget/2024%20Forecast/Query/Deposit%20Budget.code-workspace --crash-reporter-id 79707581-c8e4-4d19-adbb-ab062a374142
Screen Reader no
VM 0%
Extensions (16)
Extension Author (truncated) Version
markdown-mermaid bie 1.25.0
codeium Cod 1.16.13
rainbow-csv mec 3.12.0
black-formatter ms- 2024.2.0
debugpy ms- 2024.11.2024082901
isort ms- 2023.10.1
python ms- 2024.14.1
datawrangler ms- 1.8.1
jupyter ms- 2024.8.1
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.0.19
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
material-icon-theme PKi 5.10.0
sas-lsp SAS 1.10.2
pdf tom 1.2.2

(3 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
vscaat:30438848
c4g48928:30535728
azure-dev_surveyonecf:30548226
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
724cj586:31013169
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
newcmakeconfigv2:31071590
impr_priority:31102340
nativerepl2:31139839
refactort:31108082
pythonrstrctxt:31112756
flightc:31134773
wkspc-onlycs-t:31132770
wkspc-ranged-t:31125599
autoexpandse:31133494
ei213698:31121563
iacca1:31138162

@mjbvz
Copy link
Collaborator

mjbvz commented Sep 19, 2024

What language is this for? /gifPlease

@mjbvz mjbvz added the info-needed Issue requires more information from poster label Sep 19, 2024
Copy link

Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.

If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette). Lastly, please attach this file via the GitHub web interface as emailed responses will strip files out from the issue.

Happy coding!

@felixxxlife
Copy link
Author

felixxxlife commented Sep 19, 2024

What language is this for? /gifPlease

python

Here are the screen shots:
Before renaming a variable:
before

Renaming a variable in the script
rename

After renaming (notice the blank lines added to the codes)
after

@mjbvz
Copy link
Collaborator

mjbvz commented Sep 20, 2024

/extPython

Copy link

It looks like this is caused by the Python extension. Please file the issue to the Python extension repository. Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our issue reporting guidelines for more information.

Happy Coding!

@vs-code-engineering vs-code-engineering bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 20, 2024
@vs-code-engineering vs-code-engineering bot added the *caused-by-extension Issue identified to be caused by an extension label Sep 20, 2024
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Nov 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*caused-by-extension Issue identified to be caused by an extension info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants