diff options
author | veetaha <[email protected]> | 2020-04-01 23:20:08 +0100 |
---|---|---|
committer | veetaha <[email protected]> | 2020-04-01 23:20:08 +0100 |
commit | f4f79383b1a4f18022f960102dc83f5199014a9c (patch) | |
tree | 5d469a341e47d59e14988bf36383b02e840facfb /editors/code/src | |
parent | f696df379a5dd450b3d89a8c690de5f8d78f6be2 (diff) |
vscode: add support for light themes and color customization for syntax tree highlights
Diffstat (limited to 'editors/code/src')
-rw-r--r-- | editors/code/src/commands/syntax_tree.ts | 6 |
1 files changed, 4 insertions, 2 deletions
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 | |||
81 | // https://code.visualstudio.com/api/extension-guides/tree-view | 81 | // https://code.visualstudio.com/api/extension-guides/tree-view |
82 | class AstInspector implements vscode.HoverProvider, Disposable { | 82 | class AstInspector implements vscode.HoverProvider, Disposable { |
83 | private static readonly astDecorationType = vscode.window.createTextEditorDecorationType({ | 83 | private static readonly astDecorationType = vscode.window.createTextEditorDecorationType({ |
84 | fontStyle: "normal", | 84 | borderColor: new vscode.ThemeColor('rust_analyzer.syntaxTreeBorder'), |
85 | border: "#ffffff 1px solid", | 85 | borderStyle: "solid", |
86 | borderWidth: "2px", | ||
87 | |||
86 | }); | 88 | }); |
87 | private rustEditor: undefined | RustEditor; | 89 | private rustEditor: undefined | RustEditor; |
88 | 90 | ||