File tree 1 file changed +7
-2
lines changed
packages/tailwindcss-language-server/src/providers
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -66,10 +66,14 @@ function completionsFromClassList(
66
66
isIncomplete : false ,
67
67
items : Object . keys ( isSubset ? subset : state . classNames . classNames ) . map (
68
68
( className ) => {
69
+ let label = className
69
70
let kind : CompletionItemKind = CompletionItemKind . Constant
70
71
let documentation : string = null
72
+ let command : any
71
73
if ( isContextItem ( state , [ ...subsetKey , className ] ) ) {
72
74
kind = CompletionItemKind . Module
75
+ command = { title : '' , command : 'editor.action.triggerSuggest' }
76
+ label += state . separator
73
77
} else {
74
78
const color = getColor ( state , [ className ] )
75
79
if ( color ) {
@@ -79,12 +83,13 @@ function completionsFromClassList(
79
83
}
80
84
81
85
return {
82
- label : className ,
86
+ label,
83
87
kind,
84
88
documentation,
89
+ command,
85
90
data : [ ...subsetKey , className ] ,
86
91
textEdit : {
87
- newText : className ,
92
+ newText : label ,
88
93
range : replacementRange ,
89
94
} ,
90
95
}
You can’t perform that action at this time.
0 commit comments