-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(lsp): allow progress notifications from client
Signed-off-by: Rudi Grinberg <me@rgrinberg.com> <!-- ps-id: bd594158-5077-4875-a27e-a0b4f7bedf54 -->
- Loading branch information
Showing
10 changed files
with
58 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
open Import | ||
open Types | ||
|
||
type t = | ||
| Begin of WorkDoneProgressBegin.t | ||
| Report of WorkDoneProgressReport.t | ||
| End of WorkDoneProgressEnd.t | ||
|
||
let yojson_of_t = function | ||
| Begin b -> WorkDoneProgressBegin.yojson_of_t b | ||
| Report r -> WorkDoneProgressReport.yojson_of_t r | ||
| End e -> WorkDoneProgressEnd.yojson_of_t e | ||
|
||
let t_of_yojson json = | ||
Json.Of.untagged_union | ||
"Progress" | ||
[ (fun j -> Begin (WorkDoneProgressBegin.t_of_yojson j)) | ||
; (fun j -> Report (WorkDoneProgressReport.t_of_yojson j)) | ||
; (fun j -> End (WorkDoneProgressEnd.t_of_yojson j)) | ||
] | ||
json | ||
|
||
let method_ = "$/progress" |
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,13 @@ | ||
open Import | ||
open Types | ||
|
||
type t = | ||
| Begin of WorkDoneProgressBegin.t | ||
| Report of WorkDoneProgressReport.t | ||
| End of WorkDoneProgressEnd.t | ||
|
||
val yojson_of_t : t -> Json.t | ||
|
||
val t_of_yojson : Json.t -> t | ||
|
||
val method_ : string |
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