formatting
parent
388cbb8351
commit
14ec688199
|
@ -240,25 +240,23 @@ export function completionsFromClassList(
|
||||||
items: Object.keys(isSubset ? subset : state.classNames.classNames)
|
items: Object.keys(isSubset ? subset : state.classNames.classNames)
|
||||||
.filter((k) => k !== '__info')
|
.filter((k) => k !== '__info')
|
||||||
.filter((className) => isContextItem(state, [...subsetKey, className]))
|
.filter((className) => isContextItem(state, [...subsetKey, className]))
|
||||||
.map(
|
.map((className, index): CompletionItem => {
|
||||||
(className, index): CompletionItem => {
|
return {
|
||||||
return {
|
label: className + sep,
|
||||||
label: className + sep,
|
kind: 9,
|
||||||
kind: 9,
|
documentation: null,
|
||||||
documentation: null,
|
command: {
|
||||||
command: {
|
title: '',
|
||||||
title: '',
|
command: 'editor.action.triggerSuggest',
|
||||||
command: 'editor.action.triggerSuggest',
|
},
|
||||||
},
|
sortText: '-' + naturalExpand(index),
|
||||||
sortText: '-' + naturalExpand(index),
|
data: [...subsetKey, className],
|
||||||
data: [...subsetKey, className],
|
textEdit: {
|
||||||
textEdit: {
|
newText: className + sep,
|
||||||
newText: className + sep,
|
range: replacementRange,
|
||||||
range: replacementRange,
|
},
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
)
|
})
|
||||||
.concat(
|
.concat(
|
||||||
Object.keys(isSubset ? subset : state.classNames.classNames)
|
Object.keys(isSubset ? subset : state.classNames.classNames)
|
||||||
.filter((className) =>
|
.filter((className) =>
|
||||||
|
|
Loading…
Reference in New Issue