Skip to content

Commit 5836e30

Browse files
committed
fix: Added support for string interpolation
1 parent 824dd5a commit 5836e30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/auto-complete.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ export default class AutoCompleteProvider implements CompletionItemProvider {
7272
const lastToken = token[token.length - 1];
7373

7474
const tokenStartsWithQuote = function (word: string): boolean {
75-
const reg = /^[\"\']/;
75+
const reg = /^[\"\'\`]/;
7676
const match = word.match(reg);
7777
return match ? true : false;
7878
};
7979

8080
if (tokenStartsWithQuote(lastToken)) {
81-
return lastToken.replace(/['"]/g, "") || "";
81+
return lastToken.replace(/['"`]/g, "") || "";
8282
}
8383

8484
return undefined;

0 commit comments

Comments
 (0)