tuned signature;
authorwenzelm
Tue, 20 Jun 2017 16:17:54 +0200
changeset 66140 cdb6c10122b6
parent 66139 6a8f8be2741c
child 66141 81c8bb1d33b9
tuned signature;
src/Tools/VSCode/src/protocol.scala
src/Tools/VSCode/src/vscode_rendering.scala
--- a/src/Tools/VSCode/src/protocol.scala	Tue Jun 20 16:14:38 2017 +0200
+++ b/src/Tools/VSCode/src/protocol.scala	Tue Jun 20 16:17:54 2017 +0200
@@ -331,7 +331,7 @@
     kind: Option[Int] = None,
     detail: Option[String] = None,
     documentation: Option[String] = None,
-    insertText: Option[String] = None,
+    text: Option[String] = None,
     range: Option[Line.Range] = None,
     command: Option[Command] = None)
   {
@@ -340,10 +340,10 @@
       JSON.optional("kind" -> kind) ++
       JSON.optional("detail" -> detail) ++
       JSON.optional("documentation" -> documentation) ++
-      JSON.optional("insertText" -> insertText) ++
+      JSON.optional("insertText" -> text) ++
       JSON.optional("range" -> range.map(Range(_))) ++
       JSON.optional("textEdit" ->
-        range.map(r => Map("range" -> Range(r), "newText" -> insertText.getOrElse(label)))) ++
+        range.map(r => Map("range" -> Range(r), "newText" -> text.getOrElse(label)))) ++
       JSON.optional("command" -> command.map(_.json))
   }
 
--- a/src/Tools/VSCode/src/vscode_rendering.scala	Tue Jun 20 16:14:38 2017 +0200
+++ b/src/Tools/VSCode/src/vscode_rendering.scala	Tue Jun 20 16:17:54 2017 +0200
@@ -224,7 +224,7 @@
         def item(command: Protocol.Command): Protocol.CompletionItem =
           Protocol.CompletionItem(
             label = command.title,
-            insertText = Some(""),
+            text = Some(""),
             range = Some(model.content.doc.range(Text.Range(caret))),
             command = Some(command))