lsp: added more triggerCharacters to make completion popups more consistent;
authorThomas Lindae <thomas.lindae@in.tum.de>
Thu, 18 Jul 2024 17:59:50 +0200
changeset 81081 6aafcdc0217f
parent 81080 4aa4bd946f96
child 81082 132080f5d15c
lsp: added more triggerCharacters to make completion popups more consistent;
src/Tools/VSCode/src/lsp.scala
--- a/src/Tools/VSCode/src/lsp.scala	Thu Jul 18 01:18:43 2024 +0200
+++ b/src/Tools/VSCode/src/lsp.scala	Thu Jul 18 17:59:50 2024 +0200
@@ -156,7 +156,8 @@
         "completionProvider" -> JSON.Object(
           "resolveProvider" -> false,
           "triggerCharacters" ->
-            Symbol.symbols.entries.flatMap(_.abbrevs).flatMap(_.toList).map(_.toString).distinct
+            (Symbol.symbols.entries.flatMap(_.abbrevs).flatMap(_.toList).map(_.toString)
+            ++ Symbol.symbols.entries.map(_.name).flatMap(_.toList).map(_.toString)).distinct
         ),
         "hoverProvider" -> true,
         "definitionProvider" -> true,