vscode-code-outline icon indicating copy to clipboard operation
vscode-code-outline copied to clipboard

Very slow to display symbols in CODE OUTLINE

Open derekwallace opened this issue 6 years ago • 4 comments

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. profile

Thanks Derek

derekwallace avatar May 02 '18 15:05 derekwallace

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.

patrys avatar May 02 '18 17:05 patrys

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

derekwallace avatar May 02 '18 18:05 derekwallace

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.

patrys avatar May 02 '18 19:05 patrys

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.

derekwallace avatar May 12 '18 19:05 derekwallace