-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lsp] Support client-side setting of server options.
This is very convenient as for the user to be able to set server options that currently require a recompile.
- Loading branch information
Showing
10 changed files
with
111 additions
and
36 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
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,12 +1,20 @@ | ||
(** [mem_stats] Call [Obj.reachable_words] for every sentence. This is very slow | ||
and not very useful, so disabled by default *) | ||
let mem_stats = false | ||
type t = | ||
{ mem_stats : bool [@default false] | ||
(** [mem_stats] Call [Obj.reachable_words] for every sentence. This is | ||
very slow and not very useful, so disabled by default *) | ||
; gc_quick_stats : bool [@default true] | ||
(** [gc_quick_stats] Show the diff of [Gc.quick_stats] data for each | ||
sentence *) | ||
; eager_diagnostics : bool [@default true] | ||
(** [eager_diagnostics] Send (full) diagnostics after processing each *) | ||
; ok_diagnostics : bool [@default false] (** Show diagnostic for OK lines *) | ||
} | ||
|
||
(** [gc_quick_stats] Show the diff of [Gc.quick_stats] data for each sentence *) | ||
let gc_quick_stats = true | ||
let default = | ||
{ mem_stats = false | ||
; gc_quick_stats = true | ||
; eager_diagnostics = true | ||
; ok_diagnostics = false | ||
} | ||
|
||
(** [eager_diagnostics] Send (full) diagnostics after processing each *) | ||
let eager_diagnostics = true | ||
|
||
(** Show diagnostic for OK lines *) | ||
let ok_diag = false | ||
let v = ref default |
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