use user's separator
parent
fb9539ac46
commit
2cd6b792c1
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue