use user's separator

master
Brad Cornes 2020-04-27 22:23:22 +01:00
parent fb9539ac46
commit 2cd6b792c1
1 changed files with 2 additions and 3 deletions

View File

@ -27,8 +27,7 @@ function completionsFromClassList(
): CompletionList { ): CompletionList {
let classNames = classList.split(/[\s+]/) let classNames = classList.split(/[\s+]/)
const partialClassName = classNames[classNames.length - 1] const partialClassName = classNames[classNames.length - 1]
// TODO let sep = state.separator
let sep = ':'
let parts = partialClassName.split(sep) let parts = partialClassName.split(sep)
let subset: any let subset: any
let subsetKey: string[] = [] let subsetKey: string[] = []
@ -73,7 +72,7 @@ function completionsFromClassList(
if (isContextItem(state, [...subsetKey, className])) { if (isContextItem(state, [...subsetKey, className])) {
kind = CompletionItemKind.Module kind = CompletionItemKind.Module
command = { title: '', command: 'editor.action.triggerSuggest' } command = { title: '', command: 'editor.action.triggerSuggest' }
label += state.separator label += sep
} else { } else {
const color = getColor(state, [className]) const color = getColor(state, [className])
if (color) { if (color) {