OmniSharp / omnisharp-roslyn

OmniSharp server (HTTP, STDIO) based on Roslyn workspaces
MIT License
1.78k stars 420 forks source link

Support for analyzing opened documents only #2499

Open BoHomola opened 1 year ago

BoHomola commented 1 year ago

Hi, Is it possible to use analyzers only for opened documents instead of the whole solution?

"enableAnalyzersSupport": true This line enables the analyzers for the whole solution, which in a larger project has very slow load time and bumps up my CPU usage by a lot. Just for comparison, without the analyzers, my solution ~40 projects loads in around 40s. With analyzers enabled, it takes up 10+ minutes with constant high CPU usage.

Nebulaxin commented 1 year ago

There is "omnisharp.analyzeOpenDocumentsOnly" option in settings