Tweak default configuration to be more performant on Windows #50
+44
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added Roslyn configuration options to be better optimized for large repos. In particular, the
dotnet_analyzer_diagnostics_scopeand thedotnet_compiler_diagnostics_scopeare set toOpenFiles, so they aren't trying to run across the entire project all at once. Added caching for json set in thetransform_settings_for_roslynfunction, which was generating a new json every few seconds to check for changes, causing bloated memory over time.Disclaimer: I made this PR to solve an issue I'm currently facing. However, I am not completely proficient in Rust, so this was mostly built using GitHub copilot and some well-engineered prompts. I've tested it in Zed (both Preview and Nightly) after a
cargo build --releaseand it does seem to solve the issue of Zed hanging after Roslyn has been running too long on Windows. That said, please feel free to make improvements if anything stands out.