-
Notifications
You must be signed in to change notification settings - Fork 664
Implement getJSSyntacticDiagnosticsForFile for TypeScript-only construct detection in JavaScript files #1387
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
Draft
Copilot
wants to merge
34
commits into
main
Choose a base branch
from
copilot/fix-1386
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
68c5302
Initial plan
Copilot e4b5e3c
Add getJSSyntacticDiagnosticsForFile implementation and additionalSyn…
Copilot 194f161
Fix AST node conversion issues and add comprehensive test case
Copilot 466a9f8
Add NodeFlagsReparsed check to bail out early for synthesized type an…
Copilot 3e0d26f
Update baselines after implementing NodeFlagsReparsed check
Copilot bd6a76d
Move diagnostic calculation to ast package with thread-safe lazy eval…
Copilot 1e6c41e
Refactor JS diagnostic functions: move field order and extract to sep…
Copilot 84ece9d
Address review feedback: format code, fix diagnostics initialization,…
Copilot 617d7ac
Add NodeFlagsReparsed checks to fix false positives on JSDoc type ann…
Copilot 2f7b583
Move JS diagnostics from ast to compiler package and use SyncMap for …
Copilot d55f804
Fix false positives on JSDoc type arguments in JavaScript files
Copilot 732f699
Refactor JS diagnostics: move to separate file and use visitor pattern
Copilot eaeddaf
Refactor JS diagnostics to use binder and scanner functions for bette…
Copilot 0eb0b7f
Merge branch 'main' into copilot/fix-1386
jakebailey 0305435
Fix JS diagnostic positioning and detection issues
Copilot 457a6d3
Fix JS diagnostic positioning for type parameters to match TypeScript…
Copilot 88f567f
Remove isTypeScriptOnlyModifier function and fix modifier checking logic
Copilot 47234a3
Add missing question mark modifier check for method and property decl…
Copilot 5d296fa
Remove duplicate JS diagnostic cases and fix token text detection
Copilot bd46d8a
Manual tweak
jakebailey 241e1c7
Merge branch 'main' into copilot/fix-1386
jakebailey 8389be3
Extract JS diagnostics calculation into helper function
Copilot 94d8aed
Fix JS diagnostics caching to avoid unnecessary AST walks
Copilot 4894614
Move GetErrorRangeForNode to scanner
jakebailey 563ca59
Remove old todo
jakebailey a460d7b
Merge branch 'main' into copilot/fix-1386
jakebailey 1719219
Move to parser
jakebailey 4873b39
Fix binding issue
jakebailey ec7ddc5
Remove cache
jakebailey e67cd95
No need for empty slice anymore
jakebailey 74416e1
Simplify JS diagnostics code per review feedback - reduce redundancy …
Copilot b48403d
Fix type argument panic and improve type node detection - partial fix…
Copilot a76f6f6
Fix JS syntactic diagnostics for null/undefined literals and type arg…
Copilot 60db541
Fix false positive error on ternary operators in JavaScript files
Copilot 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
I don't understand why we have get/set pairs for these, instead of making them public. Is it concerns about our public API?