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 7f77a9e commit a8e6a9aCopy full SHA for a8e6a9a
src/extension.ts
@@ -52,6 +52,11 @@ export async function activate(context: vscode.ExtensionContext) {
52
return
53
}
54
55
+ if (!tw) {
56
+ intellisense.dispose()
57
+ return
58
+ }
59
+
60
intellisense.reload(tw)
61
62
@@ -132,8 +137,10 @@ function createCompletionItemProvider(
132
137
// e.g. .flex.items-center
133
138
let lineText = text.split('\n').pop()
134
139
matches = lineText.match(/\.([^()#>*^ \[\]=$@{}]*)$/i)
135
- let parts = matches[matches.length - 1].split('.')
136
- str = parts[parts.length - 1]
140
+ if (matches) {
141
+ let parts = matches[matches.length - 1].split('.')
142
+ str = parts[parts.length - 1]
143
144
145
146
if (typeof str !== 'undefined') {
0 commit comments