-
Notifications
You must be signed in to change notification settings - Fork 662
Generate LSP response types, redo nullable, delete aliases, statically type LSP handlers #1441
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
Merged
+2,201
−1,250
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
49cdeb4
Flatten ors
jakebailey 5174451
dedupe
jakebailey f10463f
Generate response types and redo nullable
jakebailey a10f21c
or null
jakebailey d137984
Generate response types
jakebailey 2dfcb22
Redo aliases
jakebailey 7eb0285
Fix
jakebailey 92b08b2
Fix repsonse type names
jakebailey 27f3a0d
Typed handlers
jakebailey ac16f29
Fix tests
jakebailey baa769f
Rename
jakebailey f45bcf6
remove unused
jakebailey f2c67b5
Rename
jakebailey 901e2ff
notifiations
jakebailey 2474821
Move
jakebailey ffa8966
Use method names for switch
jakebailey f1ce4fa
Rename
jakebailey d7ae5a2
Rename
jakebailey 073938b
Comments
jakebailey 0ead675
Consolidate
jakebailey b3cbf06
Swap
jakebailey 1b6c908
Merge branch 'main' into jabaile/lsp-update
jakebailey 84b8eb8
Fourslash 1
jakebailey 95a3822
Fourslash 2
jakebailey b74c621
Rename
jakebailey 8cb0b69
Defer handler code until after startup since most runs are tsc not lsp
jakebailey 2afa446
missed one
jakebailey 6cfcada
Trim common prefixes in unions
jakebailey 827369b
Trim names too
jakebailey 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
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.
It'd be ideal if
sendRequest
(or a wrapper function) automatically errored based onresMsg
andresultOk
and used the passedMethod
for the errors.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 wanted to do this, but it means I have to also pass in
prefix
which felt strange...