pylance-release icon indicating copy to clipboard operation
pylance-release copied to clipboard

The overview ruler doesn't indicate selections when the Pylance extension is enabled

Open carlwr opened this issue 2 years ago • 0 comments

Type: Bug

Steps to reproduce:

  • have the Pylance extension enabled
  • have the language se to python
  • make a selection in the editor

Expected:

  • the overview ruler visually indicates text in the fule that match the selection

Actual:

  • no such visual indications in the overview ruler

As a consequence of the above, if invoking with code-insiders --disable-extensions the problem will not be present.

This problem bears resemblance to https://github.com/microsoft/vscode/issues/187120.

Screenshots

Expected <=> problem not present (Pylance disabled): CleanShot 2023-12-28 at 12 19 53

Actual <=> problem present (Pylance enabled): CleanShot 2023-12-28 at 12 21 48

Details

Problem is only present when

  • the language of the file is set to python
  • the Pylance extension is enabled

If Pylance is first disabled and then enabled, the problem is only triggered after also doing Developer: Reload Window. To reproduce this:

  • disable Pylance
  • reload
  • verify selection indicators do show
  • enable Pylance
  • -> selection indicators will still show, also after changing the selection
  • do Developer: Reload Window
  • problem present again: selection indicators won't show

Invoking with code-insiders --disable-gpu has no effect on the presence of the problem.

Versions, system info

code-insiders --version
# 1.81.0-insider
# 6445d93c81ebe42c4cbd7a60712e0b17d9463e97
# arm64

code-insiders --list-extensions --show-version \
| grep -E 'ms-python.*(python|pylance)'
# [email protected]
# [email protected]

uname -a
# Darwin ... 22.5.0 Darwin Kernel Version 22.5.0: Mon Apr 24 20:53:44 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T8103 arm64

[generated by issue reporter]:

Extension version: 2023.12.1 VS Code version: Code - Insiders 1.81.0-insider (Universal) (6445d93c81ebe42c4cbd7a60712e0b17d9463e97, 2023-08-02T12:33:35.295Z) OS version: Darwin arm64 22.5.0 Modes:

System Info
Item Value
CPUs Apple M1 (8 x 24)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
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, 2, 2
Memory (System) 16.00GB (0.43GB free)
Process Argv . --crash-reporter-id fe54dafd-b26b-456a-946e-38dfeae593f7
Screen Reader no
VM 0%
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256198
vslsvsres303:30308271
pythontb:30258533
pythonptprofiler:30281269
vsdfh931cf:30280410
vshan820:30294714
vscod805cf:30301675
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
py29gd2263:30784851
vsclangdf:30492506
c4g48928:30535728
dsvsc012:30540252
showlangstatbar:30737417
fixshowwlkth:30771523
showindicator:30805243
pythongtdpath:30726887
i26e3531:30792625
welcomedialog:30812478
pythonidxpt:30768918
pythonnoceb:30776497
asynctok:30898717
dsvsc013:30777762
dsvsc014:30777825
pythonmpswarning:30901777
dsvsc015:30821418
pythontestfixt:30866404
pythonregdiag2:30926734
pyreplss1:30879911
pythonmypyd1:30859725
pythoncet0:30859736
pythontbext0:30879054
accentitlementst:30870582
dsvsc016:30879898
dsvsc017:30880771
dsvsc018:30880772
aa_t_chat:30882232
cp7184t:30925682

carlwr avatar Dec 28 '23 12:12 carlwr