master
Brad Cornes 2018-08-25 00:15:40 +01:00
parent 7f77a9ebfa
commit a8e6a9ac01
1 changed files with 9 additions and 2 deletions

View File

@ -52,6 +52,11 @@ export async function activate(context: vscode.ExtensionContext) {
return
}
if (!tw) {
intellisense.dispose()
return
}
intellisense.reload(tw)
}
}
@ -132,8 +137,10 @@ function createCompletionItemProvider(
// e.g. .flex.items-center
let lineText = text.split('\n').pop()
matches = lineText.match(/\.([^()#>*^ \[\]=$@{}]*)$/i)
let parts = matches[matches.length - 1].split('.')
str = parts[parts.length - 1]
if (matches) {
let parts = matches[matches.length - 1].split('.')
str = parts[parts.length - 1]
}
}
if (typeof str !== 'undefined') {