-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initialize as a codeActionProvider when the client supports quickfixes
Summary: Telling the LSP client that we're a codeActionProvider means that it'll ask us for codeActions when the user hovers over errors. This'll let us provide quickfixes corresponding to type errors; specifically, the "Did you mean?" type error. The codeActions we'll provide (both the existing "autofix exports" actions and the "did you mean?" actions being added in D20003667) will be quickfix CodeAction literals, so we initialize as a provider of quickfixes iff the client supports quickfix CodeAction literals. Fixes #8277 Reviewed By: nmote Differential Revision: D19919160 fbshipit-source-id: 4b204227d6425cd7de217810bbe469662f2d37d8
- Loading branch information
1 parent
7642a1b
commit db6ab74
Showing
5 changed files
with
74 additions
and
50 deletions.
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