From f4f79383b1a4f18022f960102dc83f5199014a9c Mon Sep 17 00:00:00 2001 From: veetaha Date: Thu, 2 Apr 2020 01:20:08 +0300 Subject: vscode: add support for light themes and color customization for syntax tree highlights --- editors/code/src/commands/syntax_tree.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'editors/code/src') diff --git a/editors/code/src/commands/syntax_tree.ts b/editors/code/src/commands/syntax_tree.ts index 996c7a716..ad9878617 100644 --- a/editors/code/src/commands/syntax_tree.ts +++ b/editors/code/src/commands/syntax_tree.ts @@ -81,8 +81,10 @@ class TextDocumentContentProvider implements vscode.TextDocumentContentProvider // https://code.visualstudio.com/api/extension-guides/tree-view class AstInspector implements vscode.HoverProvider, Disposable { private static readonly astDecorationType = vscode.window.createTextEditorDecorationType({ - fontStyle: "normal", - border: "#ffffff 1px solid", + borderColor: new vscode.ThemeColor('rust_analyzer.syntaxTreeBorder'), + borderStyle: "solid", + borderWidth: "2px", + }); private rustEditor: undefined | RustEditor; -- cgit v1.2.3