-
Notifications
You must be signed in to change notification settings - Fork 676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to change huge project file limit #1877
Allow to change huge project file limit #1877
Conversation
@DustinCampbell how do you feel about the configuration name? Did we intend to use |
Also, I'm not quite sure if using |
Sorry for the delay. Yes, it might huge project might be too internal (although I got used to the name - it makes me feel like my project really is big :) ) I've updated the name to the one you have proposed. |
@DustinCampbell should this be reviewed again? |
6a07917
to
23ac608
Compare
Hey, This has bitten me once again, so I decided to review the PR. I've re-applied the changes (after the comments from @DustinCampbell) on the current master. May I ask for re-review? I've tried to add some test suite, but my TS/vscode-fu is less than optimal and failed miserably. I'm willing to add them, but need some guidance (e.g. how to properly check for diagnostics that, AFAIK, are populated asynchronously). |
Codecov Report
@@ Coverage Diff @@
## master #1877 +/- ##
==========================================
+ Coverage 65.04% 65.27% +0.22%
==========================================
Files 99 99
Lines 4320 4328 +8
Branches 630 631 +1
==========================================
+ Hits 2810 2825 +15
+ Misses 1321 1316 -5
+ Partials 189 187 -2
Continue to review full report at Codecov.
|
@jakubfijalkowski Apologies for the delayed response here. We will have to add an integrtaion test for the diagnostics provider. You can look up similar files in the integration test folder to see how they wait on the appropriate response from vscode. You can read more about writing the integration tests here : https://github.com/OmniSharp/omnisharp-vscode/wiki/Writing-tests#integration-tests. |
@akshita31 Thank you for the links! I'll try to write them after the weekend. |
23ac608
to
3080763
Compare
I've tried to write the tests, but I don't think it is easily possible with current My "simple" idea was to just test I think that a better approach would be to return the What do you think, which way would be more appropriate? |
a95ce4c
to
461542c
Compare
Okay, just for tests I went with the correct approach and extended |
@jakubfijalkowski Should we be more specific with the tests and call out that we are testing the "Advisor" and not the "Diagnostic Provider" itself ? Something like Advisor.ShouldValidateDocument returns true when... |
@akshita31 You're right. Fixed! |
We would need a changelog update for this one. @jakubfijalkowski If you are interested you might do that in this or a separate PR. |
@akshita31 Done, I've added the entry in this PR. |
Hello!
I've recently stumbled upon the huge project file limit. On project with ~1.1k files (~100k LOC) and i7-7700HQ it works reasonably well, so configuring it would be good. This PR adds the
omnisharp.hugeProjectLimit
option.Fixes #838 and #1525.