diff options
Diffstat (limited to 'editors/code/src')
-rw-r--r-- | editors/code/src/extension.ts | 7 | ||||
-rw-r--r-- | editors/code/src/highlighting.ts | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/editors/code/src/extension.ts b/editors/code/src/extension.ts index 6637c3bf0..a78aa3b42 100644 --- a/editors/code/src/extension.ts +++ b/editors/code/src/extension.ts | |||
@@ -89,9 +89,10 @@ export async function activate(context: vscode.ExtensionContext) { | |||
89 | } | 89 | } |
90 | 90 | ||
91 | // Notifications are events triggered by the language server | 91 | // Notifications are events triggered by the language server |
92 | const allNotifications: Iterable< | 92 | const allNotifications: Iterable<[ |
93 | [string, lc.GenericNotificationHandler] | 93 | string, |
94 | > = [ | 94 | lc.GenericNotificationHandler |
95 | ]> = [ | ||
95 | [ | 96 | [ |
96 | 'rust-analyzer/publishDecorations', | 97 | 'rust-analyzer/publishDecorations', |
97 | notifications.publishDecorations.handle | 98 | notifications.publishDecorations.handle |
diff --git a/editors/code/src/highlighting.ts b/editors/code/src/highlighting.ts index d21d8a06a..48f2a2547 100644 --- a/editors/code/src/highlighting.ts +++ b/editors/code/src/highlighting.ts | |||
@@ -40,9 +40,10 @@ export class Highlighter { | |||
40 | return [tag, decor]; | 40 | return [tag, decor]; |
41 | }; | 41 | }; |
42 | 42 | ||
43 | const decorations: Iterable< | 43 | const decorations: Iterable<[ |
44 | [string, vscode.TextEditorDecorationType] | 44 | string, |
45 | > = [ | 45 | vscode.TextEditorDecorationType |
46 | ]> = [ | ||
46 | decoration('comment'), | 47 | decoration('comment'), |
47 | decoration('string'), | 48 | decoration('string'), |
48 | decoration('keyword'), | 49 | decoration('keyword'), |