aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/highlighting.ts
diff options
context:
space:
mode:
authorSeivan Heidari <[email protected]>2019-12-23 23:04:36 +0000
committerSeivan Heidari <[email protected]>2019-12-23 23:04:36 +0000
commit25537d294cb7a3e01d2329a7d07b469d734fc829 (patch)
tree6d08e6c48ddf4bf8a3168daee0d0d31c137b8785 /editors/code/src/highlighting.ts
parentb21d9337d9200e2cfdc90b386591c72c302dc03e (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.ts4
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
28function createDecorationFromTextmate( 28function 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 }