-
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(lsp): Add test harness, update named arg code action title, fix c…
…ode action trigger points, do not print LSP warnings (#2134)
- Loading branch information
1 parent
1b3a9f0
commit 36c0bb8
Showing
8 changed files
with
882 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[@deriving (enum, yojson)] | ||
type message_type = | ||
| [@value 1] Error | ||
| Warning | ||
| Info | ||
| Log | ||
| Debug; | ||
|
||
[@deriving yojson] | ||
type t = { | ||
[@key "type"] | ||
type_: int, | ||
message: string, | ||
}; | ||
|
||
let log = (~message_type=Info, message) => { | ||
let type_ = message_type_to_enum(message_type); | ||
Protocol.notification( | ||
~method="window/logMessage", | ||
to_yojson({message, type_}), | ||
); | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
(library | ||
(name Grain_tests_suites) | ||
(public_name grain-tests.suites) | ||
(libraries grain grain-tests.framework) | ||
(libraries grain grain-tests.framework uri) | ||
(modules (:standard))) |
Oops, something went wrong.