forked fromdotnet/fsharp
- Notifications
You must be signed in to change notification settings - Fork0
Commit3a68884
Try to make completion faster (dotnet#2315)
* use TryGetRecentCheckResultsForFile to get potentially stale file check results* wip* make GetDeclarationListInfo "threadSafeOp" instead of "reactorOp"* make QuickInfo description and signature help synchronous* Revert "make QuickInfo description and signature help synchronous"This reverts commit2f0ad0f.* remove reactor ops from FSharpFileCheckResults* reduce incrementalTypeCheckCacheSize from 5 to 3refactoring* Revert "remove reactor ops from FSharpFileCheckResults"This reverts commitc068581.* use incremental file checking* revert last bits to reactor* refactor CompletionProvider* TypeCheckOneFile works incrementally, processing Eventually with Reactor bit-by-bit* combine CheckOneFile reactor ops into 50 ms slices approx* pass allowStaleResults explicitly* make ParseAndCheckInteraction async* remove CancellationToken from repeatedlyProgressUntilDoneOrTimeShareOver(OrCanceled)remove explicit CancellationToken from forceAsync* FSharpChecker.ParseAndCheckDocument tries to get fresh check results for 2 seconds, then uses stale ones, if the caller permits it, then continue waiting for fresh ones, if there is no stale results* revert cancellation token to repeatedlyProgressUntilDoneOrTimeShareOverOrCanceled* fix the semaphore* use Async.StartChild with timeout, which is automatically cancelled by timeout* refactor ParseAndCheckDocument* store TcResolutions.CapturedEnvs indexed by line* remove unnecessary execWithReactorAsync for methods already protected with BackgroundCompiler.locked* add beingCheckedFileCache* fix Logging crash in tests* extract CheckOneFile* Revert "store TcResolutions.CapturedEnvs indexed by line"This reverts commit30c9bcf.* remove logging* spin faster* address code review* add "VFT_GetFreshFileCheckResultsTimeoutMillis" environment variable to control how much we wait for fresh file type check results until falling to use cached ones* proper Equals for beingCheckedFileTable* fixed: CheckFileInProjectIfReady does not call ImplicitlyStartCheckProjectInBackground no matter what, as before* remove unused parameter from tryGetFreshResultsWithTimeout* remove logging1 parentd6408d7 commit3a68884
File tree
21 files changed
+499
-331
lines changed- src
- absil
- fsharp/vs
- vsintegration
- src/FSharp.Editor
- Classification
- CodeFix
- Commands
- Common
- Completion
- Diagnostics
- DocumentHighlights
- InlineRename
- Navigation
- QuickInfo
- tests/Salsa
21 files changed
+499
-331
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
| 497 | + | |
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
| 504 | + | |
| 505 | + | |
504 | 506 | | |
505 | 507 | | |
506 | 508 | | |
| |||
515 | 517 | | |
516 | 518 | | |
517 | 519 | | |
| 520 | + | |
518 | 521 | | |
519 | 522 | | |
520 | 523 | | |
521 | | - | |
| 524 | + | |
522 | 525 | | |
523 | 526 | | |
524 | 527 | | |
| |||
527 | 530 | | |
528 | 531 | | |
529 | 532 | | |
530 | | - | |
531 | | - | |
| 533 | + | |
| 534 | + | |
532 | 535 | | |
533 | 536 | | |
534 | 537 | | |
535 | 538 | | |
536 | 539 | | |
537 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
538 | 554 | | |
539 | 555 | | |
540 | 556 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1161 | 1161 | | |
1162 | 1162 | | |
1163 | 1163 | | |
1164 | | - | |
| 1164 | + | |
1165 | 1165 | | |
1166 | | - | |
| 1166 | + | |
1167 | 1167 | | |
1168 | 1168 | | |
1169 | 1169 | | |
| |||
1497 | 1497 | | |
1498 | 1498 | | |
1499 | 1499 | | |
1500 | | - | |
| 1500 | + | |
1501 | 1501 | | |
| 1502 | + | |
1502 | 1503 | | |
1503 | 1504 | | |
1504 | 1505 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1310 | 1310 | | |
1311 | 1311 | | |
1312 | 1312 | | |
1313 | | - | |
| 1313 | + | |
1314 | 1314 | | |
1315 | 1315 | | |
1316 | 1316 | | |
| |||
0 commit comments
Comments
(0)