forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
Description
Type: Bug
Behaviour
When not using Pylance when I open a Python file the "Python: Restart Language Server" gets added to the command palette, but it can't find the actual command when running.
Steps to reproduce:
- Install Pylance
- Install Pyrefly
- Use Pyrefly as language server
- Open Python file
- Run "Python: Restart Language Server" command
Diagnostic data
There are no logs from the Python Output panel when this happens.
By the way, I'm quite surprised by the languageServer: "None" in the diagnostics. pyrefly works fine as a LSP. Is the Python extension not picking it up correctly?
Extension version: 2025.18.0
VS Code version: Code 1.106.3 (bf9252a2fb45be6893dd8870c0bf37e2e1766d61, 2025-11-25T22:28:18.024Z)
OS version: Linux x64 6.8.0-88-generic
Modes:
- Python version (& distribution if applicable, e.g. Anaconda): 3.13.3
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
- Value of the
python.languageServersetting: Default
User Settings
languageServer: "None"
testing
• pytestArgs: "<placeholder>"
• pytestEnabled: true
• autoTestDiscoverOnSaveEnabled: false
Installed Extensions
| Extension Name | Extension Id | Version |
|---|---|---|
| code-spell-checker | str | 4.3.2 |
| copilot | Git | 1.388.0 |
| copilot-chat | Git | 0.33.3 |
| debugpy | ms- | 2025.16.0 |
| even-better-toml | tam | 0.21.2 |
| gitlens | eam | 17.7.1 |
| haskell | has | 2.6.1 |
| js-debug | ms- | 1.105.0 |
| js-debug-companion | ms- | 1.1.3 |
| jupyter | ms- | 2025.9.1 |
| jupyter-renderers | ms- | 1.3.0 |
| language-haskell | jus | 3.6.0 |
| Nix | bbe | 1.0.1 |
| prettier-vscode | esb | 11.0.0 |
| pyrefly | met | 0.43.1 |
| python | ms- | 2025.18.0 |
| remote-repositories | ms- | 0.42.0 |
| remotehub | Git | 0.64.0 |
| ruff | cha | 2025.30.0 |
| rust-analyzer | rus | 0.3.2693 |
| separators | ale | 2.9.0 |
| todo-tree | Gru | 0.0.226 |
| vim | vsc | 1.32.1 |
| vscode-js-profile-table | ms- | 1.0.10 |
| vscode-jupyter-cell-tags | ms- | 0.1.9 |
| vscode-peacock | joh | 4.2.2 |
| vscode-pgsql | ms- | 1.12.0 |
| vscode-pull-request-github | Git | 0.122.1 |
| vscode-pylance | ms- | 2025.10.2 |
| vscode-python-envs | ms- | 1.12.0 |
| vscode-yaml | red | 1.19.1 |
System Info
| Item | Value |
|---|---|
| CPUs | 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz (16 x 4200) |
| GPU Status | 2d_canvas: enabled 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 trees_in_viz: disabled_off video_decode: enabled video_encode: disabled_software vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off webnn: disabled_off |
| Load (avg) | 4, 3, 3 |
| Memory (System) | 62.52GB (45.70GB free) |
| Process Argv | --crash-reporter-id fa5dd309-3151-499e-bb0b-0253b167ef54 |
| Screen Reader | no |
| VM | 0% |
| DESKTOP_SESSION | ubuntu |
| XDG_CURRENT_DESKTOP | Unity |
| XDG_SESSION_DESKTOP | ubuntu |
| XDG_SESSION_TYPE | wayland |
A/B Experiments
vsliv368cf:30146710
pythonvspyt551cf:31249601
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
aj953862:31281341
nes-set-on:31351930
6abeh943:31336334
0574c672:31404437
cloudbuttont:31379625
todos-1:31405332
qwen_all_req:31402696
control_gpt5applypatchexclusively:31412085
42190218_ostrepl:31403339
trigger-command-fix:31379601
auto_model_enabled:31385282
use-responses-api:31390855
auto_g2946222:31414244
6j29d282:31407606
2a0ce269:31419925
ec5jj548:31422691
copilot-nes-oct-t:31418199
cmp-ext-control:31426504
cp_cls_c_966_ss:31426491
defaultvisibility:31426295
expandedtokens:31426297
c0683394:31419495
3fia6346:31426581
ge8j1254_inline_auto_hint_haiku:31426636
nes-autoexp-20:31426650
Metadata
Metadata
Assignees
Labels
area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug