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 a46ac59 commit 614e535Copy full SHA for 614e535
src/extension.ts
@@ -78,7 +78,7 @@ function provideCompletionItemsGenerator(languageSelector: string, classMatchReg
78
79
// Check if the cursor is on a class attribute and retrieve all the css rules in this class attribute
80
const rawClasses: RegExpMatchArray = text.match(classMatchRegex);
81
- if (rawClasses.length === 1) {
+ if (!rawClasses || rawClasses.length === 1) {
82
return [];
83
}
84
0 commit comments