-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Region-based semantic diagnostics #57842
Merged
+4,872
−927
Merged
Changes from 15 commits
Commits
Show all changes
83 commits
Select commit
Hold shift + click to select a range
ce6ed79
WIP
gabritto 33ed16a
add nodesToCheck param; compute it from ranges
gabritto cf54694
more end-to-end changes
gabritto 9647997
lint fixes, api baseline changes
gabritto 9cd0edc
small fix, update baseline
gabritto eeb91c5
get project right before checking for errors
gabritto 38861fb
fix type error and tests
gabritto b46560a
WIP: return spans in region diagnostics event
gabritto 22637a4
add perf for testing
gabritto 6e03d01
include less nodes in nodes to check
gabritto 7af55c2
add unit test, more fixes
gabritto 1d2b665
fix things and add unit test
gabritto e0cf3c6
Merge branch 'main' into gabritto/regiondiag
gabritto c25a879
refactors
gabritto 0a55946
refactor type
gabritto 1b4e458
update protocol comment
gabritto a936ff0
restore checker arrays between region and full check
gabritto 13543e1
fmt
gabritto 7b53e4f
only include unused directive errors for checked range
gabritto 69aacf4
properly compute checked span
gabritto 63c543d
update comments
gabritto b51921d
pass around compressed spans so that we do unused directive check mor…
gabritto aac18b1
Revert "pass around compressed spans so that we do unused directive c…
gabritto 9a1c344
don't error on unused directives
gabritto 64d0699
tweak node selection
gabritto d445be5
add region semantic test infra; inconsistent diagnostic test
gabritto 43712cd
Merge branch 'main' into gabritto/regiondiag
gabritto ab5a25c
update test baseline
gabritto 148f9ad
add inconsistent 2307 test
gabritto 58a4f5f
2354 inconsistent position test
gabritto 1ac37e8
test for extra 2344
gabritto 9276bd3
add test for spans checked by region check
gabritto caf6fc4
add test for extra 2416
gabritto e102e49
add test for 2740 extra
gabritto 32ec3b1
add test for react error
gabritto 52b9e33
avoid re-checking nodes
gabritto 80698d3
format
gabritto 467b1a2
Merge branch 'main' into gabritto/regiondiag
gabritto ae6a7ec
remove console.log
gabritto 0a47d91
Merge branch 'main' into gabritto/regiondiag
gabritto 46813c7
update baseline
gabritto dee2885
remove failing tests
gabritto 898325f
Merge branch 'main' into gabritto/regiondiag
gabritto 13a7ab7
fmt
gabritto 7e8d763
fix default for var
gabritto b51af9c
CR: get rid of unnecessary boolean flag for partial check
gabritto a3cdc74
CR: get rid of option to exclude duration from diagnostics event, san…
gabritto 4d3f068
CR: make `shouldDoRegionCheck` internal and override it in `TestSession`
gabritto 11b7966
CR: clean up session's semantic check perf data when file is closed
gabritto f02cef4
CR: make unit test helper `verifyGetErrRequest` support region-based …
gabritto e62ec2e
CR: mark region diagnostics methods as internal
gabritto 90ef005
CR: add test for multiple files; fix testing helper to support region…
gabritto eaa9b53
fix overload lint error
gabritto 3e49b6b
CR: add unit tests with suggestions
gabritto 0ef9bb8
change order of checking for files with specified regions
gabritto 8e160cf
fix log sanitizing regex
gabritto 30a0aad
Merge branch 'main' into gabritto/regiondiag
gabritto ece3c41
update unit tests logs with duration
gabritto 0251194
remove unused baseline
gabritto 7076d14
optimization: don't do region node selection if we will skip checking…
gabritto 48f87a8
don't record semantic diagnostic time if could have done region check
gabritto 81dc370
improve optimization
gabritto 5e6ce98
add line count and use it for deciding on region check
gabritto 3254be9
TEMPORARY FOR TESTING VSCODE
gabritto ef6e4d5
get rid of performance checking in heuristic for now
gabritto c07b226
CR: mark internal
gabritto 1f262cd
CR: refactor session.ts
gabritto 34bcbb2
always do semantic check in next immediate step
gabritto 52eadaa
fix rebase problem
gabritto 12979b7
fix baselines
gabritto 830c118
check files in the order of the request
gabritto d3a8f41
refactor unit test
gabritto 1752f8f
add option for test session to always enable region checking
gabritto 9320a45
add test for skipped region diagnostics
gabritto 68831d1
format
gabritto 2f2e02f
Merge branch 'main' into gabritto/regiondiag
gabritto eb168b6
add test for file with ts-nocheck
gabritto c571ae0
Merge branch 'main' into gabritto/regiondiag
gabritto 7c512ac
add comments and minor refactor
gabritto 9f2727b
Merge branch 'main' into gabritto/regiondiag
gabritto ec6772c
refactor
gabritto f1d87dc
refactor updateErrorCheck to delay work again
gabritto 5ed581a
mark region threshold as internal
gabritto File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly I think this whole "one giant array kept until the end" is super weird and I've been wondering if we could refactor this to not use this pattern...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That could make my life more convenient for this PR.