vscode-code-outline
vscode-code-outline copied to clipboard
Very slow to display symbols in CODE OUTLINE
Hi, I have small python files and its very slow at displyaing symbols. If i open a new file the file opens in editor quickly but it takes about 10 sec for CODE OUTLINE. If i switch between files in Open Editors , it takes about 10 sec to update symbols in CODE OUTLINE. If i hit the refresh button it also takes 10 sec.
What is it running to parse the symbols? could there be something i have installed that is conflicting?
A colleague of mine does not have the issue working on the same file. Im using 1.22.2 of VSCode and the latest extension 0.1.1.
I desperatly want to get this working as it a missing key to using VSCode.
Ive attached a screenshot of the profiler. at 2 sec i select a differnet file. at about 10 sec the CODE OUTLINE is updated.
Thanks Derek
Code Outline uses the SymbolProvider API to call into a language-specific extension. Is the builtin "go to symbol" feature also slow for you? They use the same API internally.
Yes its the same. Ctrl+; and if i type in a Symbol it takes about 10 sec for something to appear.
Any idea what i should look for next to try and debug?
Thx Derek
You can file a similar issue with the Microsoft's Python extension for VS Code and link this one to it. I suppose it's something specific to how your environment is configured as I write a lot of Python code and never see it get that slow.
I opened an issue aainst vscode. it seems the issue is related to the Python extension and using network drives on windows.
As a test i uninstalled python and installed the pydev extensions. With this extension the displaying of symbols is instantaneous. exactly what i expect.