"light": "#747474",
"highContrast": "#BEBEBE"
}
+ },
+ {
+ "id": "rust_analyzer.syntaxTreeBorder",
+ "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)",
+ "defaults": {
+ "dark": "#ffffff",
+ "light": "#b700ff",
+ "highContrast": "#b700ff"
+ }
}
],
"semanticTokenTypes": [
// 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;