microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.28k stars 29.31k forks source link

Multi Root workspace is really slow when using debugger #140889

Closed ItamarShDev closed 2 years ago

ItamarShDev commented 2 years ago

Does this issue occur when all extensions are disabled?: Yes/No

Steps to Reproduce:

  1. Create a multi root workspace with multiple python packages folders
  2. Add these debugger settings
    
    "configurations": [
    {
        "cwd": "/home/<user>/Documents/<folder>",
        "type": "python",
        "request": "launch",
        "name": "JupyterLab",
        "module": "jupyterlab.labapp",
        "python": "${command:python.interpreterPath}",
        "serverReadyAction": {
            "action": "debugWithChrome",
            "webRoot": "/home/<user>/Documents/<folder>"
        },
        "env": {...}
    }
    ]

When starting the debugger, the editor becomes slow. suggestion and auto complete lags, and no auto import suggestion is working any more

Without debugger the workspace is working fine.

Here are the workspace settings:
```json
"settings": {
    "python.pythonPath": "/home/itamar/.pyenv/versions/3.9.9/envs/MOD/bin/python",
    "python.testing.pytestArgs": [
        "--no-cov"
    ],
    "files.autoSave": "afterDelay",
    "workbench.colorTheme": "Monokai Vibrant",
    "workbench.preferredDarkColorTheme": "Monokai Vibrant",
    "python.linting.flake8Enabled": true,
    "python.linting.flake8CategorySeverity.W": "Error",
    "python.formatting.yapfArgs": [
        "--style={column_limit: 120}"
    ],
    "python.linting.flake8Args": [
        "--ignore=F841,E741,E126,W503,W504,E251",
        "--max-line-length",
        "120"
    ],
    "python.terminal.activateEnvInCurrentTerminal": true,
    "python.linting.cwd": "",
    "atlascode.jira.explorer.refreshInterval": 5,
    "editor.formatOnSaveMode": "modificationsIfAvailable",
    "editor.formatOnType": true,
    "editor.formatOnSave": true
},

Enabled extension list:

aaron-bond.better-comments
atlassian.atlascode
bierner.markdown-mermaid
bmalehorn.shell-syntax
Cameron.vscode-pytest
dongli.python-preview
donjayamanne.githistory
donjayamanne.python-environment-manager
eamodio.gitlens
emmanuelbeziat.vscode-great-icons
foxundermoon.shell-format
GitHub.copilot
GitLab.gitlab-workflow
Gruntfuggly.todo-tree
hbenl.vscode-test-explorer
hediet.vscode-drawio
IBM.output-colorizer
KevinRose.vsc-python-indent
ko-dev.vscode-open-files-in-directory
mads-hartmann.bash-ide-vscode
mechatroner.rainbow-csv
ms-azuretools.vscode-docker
ms-python.gather
ms-python.python
ms-python.vscode-pylance
ms-toolsai.jupyter
ms-toolsai.jupyter-keymap
ms-toolsai.jupyter-renderers
ms-vscode-remote.remote-containers
ms-vscode-remote.remote-ssh
ms-vscode-remote.remote-ssh-edit
ms-vscode-remote.vscode-remote-extensionpack
ms-vscode.live-server
ms-vscode.test-adapter-converter
Mukundan.python-docs
nick-rudenko.back-n-forth
njpwerner.autodocstring
PVS-IfI-Heidelberg-University-Germany.vscode-nldsl-linux
rangav.vscode-thunder-client
redhat.vscode-yaml
royaction.color-manager
s3gf4ult.monokai-vibrant
sleistner.vscode-fileutils
slightc.pip-manager
spmeesseman.vscode-taskexplorer
SunilYadav.azdsextns
tokoph.ghosttext
Tyriar.sort-lines
usernamehw.errorlens
VisualStudioExptTeam.vscodeintellicode
yzhang.markdown-all-in-one

disabled extensions:

esbenp.prettier-vscode
formulahendry.auto-rename-tag
wix.glean
necinc.elmmet
elmTooling.elm-ls-vscode
christian-kohler.path-intellisense
dsznajder.es7-react-js-snippets
Divlo.vscode-styled-jsx-languageserver
Divlo.vscode-styled-jsx-syntax
svelte.svelte-vscode
weinand commented 2 years ago

/extPython

weinand commented 2 years ago

In addition to filing this issues against the Python extension I suggest that you first try to reproduce the slowness with most of your extensions disabled and only the Python extension enabled.