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

Selection of multiple lines and running code (shift+enter) doesn't do the cursor down. #22539

Closed
omkarchandra opened this issue Nov 28, 2023 · 1 comment
Assignees
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@omkarchandra
Copy link

Type: Bug

Behaviour After running code the lines remained selected/highlighted, it doesn't cursor down.

Expected

After running multiple lines in the terminal debugger the lines needs get unselected and cursor should move down.
vs. Actual
After running multiple lines in the terminal debugger, the lines remain selected.

XXX

Steps to reproduce:

  1. Run any python lines by selecting multiple lines in the terminal python interpreter (shift+enter). The lines remain selected.

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.15
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
  • Value of the python.languageServer setting: Default
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

User Settings


languageServer: "Pylance"

Extension version: 2023.20.0
VS Code version: Code 1.84.2 (Universal) (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e, 2023-11-09T10:52:33.687Z)
OS version: Darwin x64 20.6.0
Modes:
Remote OS version: Linux x64 4.15.0-213-generic
Remote OS version: Linux x64 5.15.0-69-generic

System Info
Item Value
CPUs Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz (4 x 1800)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 2, 4, 11
Memory (System) 8.00GB (0.09GB free)
Process Argv
Screen Reader no
VM 0%
Item Value
Remote SSH: 192.168.2.220
OS Linux x64 4.15.0-213-generic
CPUs Intel(R) Xeon(R) Gold 5120 CPU @ 2.20GHz (112 x 1351)
Memory (System) 503.59GB (448.64GB free)
VM 0%
Item Value
Remote SSH: 192.168.3.79
OS Linux x64 5.15.0-69-generic
CPUs Intel(R) Xeon(R) Gold 6346 CPU @ 3.10GHz (64 x 3600)
Memory (System) 251.50GB (180.34GB free)
VM 0%
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263:30880072
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
2e4cg342:30602488
89544117:30613380
a9j8j154:30646983
showlangstatbar:30737416
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixtcf:30871695
pythonregdiag2:30871582
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
h48ei257:30885898
pythontbext0:30879054
accentitlementst:30887150
dsvsc016cf:30886111
dsvsc017:30886112
dsvsc018:30886114
aa_t_chat:30882232

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Nov 28, 2023
@anthonykim1 anthonykim1 self-assigned this Nov 28, 2023
@anthonykim1
Copy link

Hi @omkarchandra . This is actually intended behavior. Smart Send feature (which selects minimum executable code and moves the mouse cursor dynamically) only works when there is no explicit selection (this means no highlighting of code). If you wish to have your cursor move, you should just press shift+enter without any highlight on or in the code block that you wish to execute.

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Dec 2, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants