summaryrefslogtreecommitdiff
path: root/src/lspspec.sml
diff options
context:
space:
mode:
Diffstat (limited to 'src/lspspec.sml')
-rw-r--r--src/lspspec.sml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lspspec.sml b/src/lspspec.sml
index 7993038e..fe1711f0 100644
--- a/src/lspspec.sml
+++ b/src/lspspec.sml
@@ -195,12 +195,14 @@ structure LspSpec = struct
{ textDocument = parseTextDocumentIdentifier (FromJson.get "textDocument" params)
}
type initializeParams =
- { rootUri: documentUri option }
+ { rootUri: documentUri option
+ , initializationOptions: Json.json }
fun parseInitializeParams (j: Json.json) =
{ rootUri =
Option.map
parseDocumentUri
(FromJson.asOptionalString (FromJson.get "rootUri" j))
+ , initializationOptions = FromJson.get "initializationOptions" j
}
type diagnostic = { range: range
(* code?: number | string *)