We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2877a70 commit 27fd8f1Copy full SHA for 27fd8f1
src/extension.ts
@@ -30,7 +30,7 @@ const defaultConfig: Config = {
30
],
31
};
32
33
-function extractVarsFromDocument(document) {
+function extractVarsFromDocument(document: vscode.TextDocument): Var[] {
34
const file = document.getText();
35
const vars = new Map();
36
return file
@@ -58,7 +58,7 @@ function extractVarsFromDocument(document) {
58
),
59
60
})
61
- .filter(Boolean);
+ .filter(Boolean) as Var[];
62
}
63
64
export async function activate(context: vscode.ExtensionContext) {
0 commit comments