diff options
author | Seivan Heidari <[email protected]> | 2019-12-23 23:04:36 +0000 |
---|---|---|
committer | Seivan Heidari <[email protected]> | 2019-12-23 23:04:36 +0000 |
commit | 25537d294cb7a3e01d2329a7d07b469d734fc829 (patch) | |
tree | 6d08e6c48ddf4bf8a3168daee0d0d31c137b8785 /editors/code/src/highlighting.ts | |
parent | b21d9337d9200e2cfdc90b386591c72c302dc03e (diff) |
Fix https://github.com/rust-analyzer/rust-analyzer/pull/2061#discussion_r348716036
Fix https://github.com/rust-analyzer/rust-analyzer/pull/2061/files/68a5ff050faf514e9d122212a66703ca8ce66ab7#r361019340
Diffstat (limited to 'editors/code/src/highlighting.ts')
-rw-r--r-- | editors/code/src/highlighting.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/code/src/highlighting.ts b/editors/code/src/highlighting.ts index 68eae0941..4e224a54c 100644 --- a/editors/code/src/highlighting.ts +++ b/editors/code/src/highlighting.ts | |||
@@ -26,7 +26,7 @@ function fancify(seed: string, shade: 'light' | 'dark') { | |||
26 | } | 26 | } |
27 | 27 | ||
28 | function createDecorationFromTextmate( | 28 | function createDecorationFromTextmate( |
29 | themeStyle: scopes.TextMateRuleSettings | 29 | themeStyle: scopes.TextMateRuleSettings, |
30 | ): vscode.TextEditorDecorationType { | 30 | ): vscode.TextEditorDecorationType { |
31 | const decorationOptions: vscode.DecorationRenderOptions = {}; | 31 | const decorationOptions: vscode.DecorationRenderOptions = {}; |
32 | decorationOptions.rangeBehavior = vscode.DecorationRangeBehavior.OpenOpen; | 32 | decorationOptions.rangeBehavior = vscode.DecorationRangeBehavior.OpenOpen; |
@@ -84,7 +84,7 @@ export class Highlighter { | |||
84 | const color = new vscode.ThemeColor(fallBackTag); | 84 | const color = new vscode.ThemeColor(fallBackTag); |
85 | const decor = vscode.window.createTextEditorDecorationType({ | 85 | const decor = vscode.window.createTextEditorDecorationType({ |
86 | color, | 86 | color, |
87 | textDecoration | 87 | textDecoration, |
88 | }); | 88 | }); |
89 | return [tag, decor]; | 89 | return [tag, decor]; |
90 | } | 90 | } |