nridge updated this revision to Diff 222337.
nridge added a comment.
Herald added a subscriber: usaxena95.

Update to reflect changes to server side in D67536 
<https://reviews.llvm.org/D67536>


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67537/new/

https://reviews.llvm.org/D67537

Files:
  clang-tools-extra/clangd/clients/clangd-vscode/src/semantic-highlighting.ts


Index: 
clang-tools-extra/clangd/clients/clangd-vscode/src/semantic-highlighting.ts
===================================================================
--- clang-tools-extra/clangd/clients/clangd-vscode/src/semantic-highlighting.ts
+++ clang-tools-extra/clangd/clients/clangd-vscode/src/semantic-highlighting.ts
@@ -190,6 +190,18 @@
         // highlighting becomes weird in certain cases.
         rangeBehavior : vscode.DecorationRangeBehavior.ClosedClosed,
       };
+      if (scopes[0] == "meta.disabled") {
+        options.isWholeLine = true;
+        // TODO: Avoid hardcoding these colors.
+        options.light = {
+          color: "rgb(100, 100, 100)",
+          backgroundColor: "rgba(220, 220, 220, 0.3)"
+        };
+        options.dark = {
+          color: "rgb(100, 100, 100)",
+          backgroundColor: "rgba(18, 18, 18, 0.3)"
+        }
+      }
       return vscode.window.createTextEditorDecorationType(options);
     });
     this.getVisibleTextEditorUris().forEach((fileUri) =>


Index: clang-tools-extra/clangd/clients/clangd-vscode/src/semantic-highlighting.ts
===================================================================
--- clang-tools-extra/clangd/clients/clangd-vscode/src/semantic-highlighting.ts
+++ clang-tools-extra/clangd/clients/clangd-vscode/src/semantic-highlighting.ts
@@ -190,6 +190,18 @@
         // highlighting becomes weird in certain cases.
         rangeBehavior : vscode.DecorationRangeBehavior.ClosedClosed,
       };
+      if (scopes[0] == "meta.disabled") {
+        options.isWholeLine = true;
+        // TODO: Avoid hardcoding these colors.
+        options.light = {
+          color: "rgb(100, 100, 100)",
+          backgroundColor: "rgba(220, 220, 220, 0.3)"
+        };
+        options.dark = {
+          color: "rgb(100, 100, 100)",
+          backgroundColor: "rgba(18, 18, 18, 0.3)"
+        }
+      }
       return vscode.window.createTextEditorDecorationType(options);
     });
     this.getVisibleTextEditorUris().forEach((fileUri) =>
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to