microsoft / vscode

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

Execute commands not handled by controllers when opening large notebooks #211047

Open DonJayamanne opened 4 months ago

DonJayamanne commented 4 months ago

Observations:

Not a bug, but a debt item to polish (there might be some code in the renderer thats slow to wireup the command handlers). As tests written need to work around these issues.

rebornix commented 4 months ago

@DonJayamanne can you please try to reproduce with logs, by F1 -> Set Log Level, change it to Trace, and then try to open the notebook. Once the notebook opens, in the Window output channel, you can find a trace like

2024-04-25 13:23:18.710 [trace] [NotebookEditor] open notebook perf file:///c%3A/Users/rebor/Code/Work/vscode/.vscode/notebooks/my-endgame.github-issues - extensionActivation: 15, inputLoad: 17, webviewComm: 17, customMarkdown: 521, editorLoad: 525

Which can tell use where the time is spent. Thanks!