lsp: partially revert c0388fbd8096 to get decorations for all keywords;
authorThomas Lindae <thomas.lindae@in.tum.de>
Wed, 24 Apr 2024 18:49:43 +0200
changeset 81022 4804614f25b3
parent 81021 89bfada3a16d
child 81023 8602af6f4bd0
lsp: partially revert c0388fbd8096 to get decorations for all keywords;
src/Tools/VSCode/src/vscode_rendering.scala
--- a/src/Tools/VSCode/src/vscode_rendering.scala	Wed Apr 24 18:48:24 2024 +0200
+++ b/src/Tools/VSCode/src/vscode_rendering.scala	Wed Apr 24 18:49:43 2024 +0200
@@ -153,9 +153,7 @@
   def text_color(range: Text.Range): List[Text.Info[Rendering.Color.Value]] = {
     snapshot.select(range, Rendering.text_color_elements, _ =>
       {
-        case Text.Info(_, XML.Elem(Markup(name, props), _)) =>
-          if (name != Markup.IMPROPER && props.contains((Markup.KIND, Markup.COMMAND))) None
-          else Rendering.text_color.get(name)
+        case Text.Info(_, elem) => Rendering.text_color.get(elem.name)
       })
   }