File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
packages/tailwindcss-language-service/src Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ export function completionsFromClassList(
70
70
( context . triggerKind === 2 && context . triggerCharacter === '/' ) ) &&
71
71
partialClassName . includes ( '/' )
72
72
) {
73
+ // opacity modifiers
73
74
let beforeSlash = partialClassName . split ( '/' ) . slice ( 0 , - 1 ) . join ( '/' )
74
75
let testClass = beforeSlash + '/[0]'
75
76
let { rules } = jit . generateRules ( state , [ testClass ] )
@@ -94,21 +95,14 @@ export function completionsFromClassList(
94
95
}
95
96
96
97
return {
97
- label : opacity ,
98
- detail : stringifyConfigValue ( opacities [ opacity ] ) ,
98
+ label : className ,
99
99
documentation,
100
100
kind,
101
101
sortText : naturalExpand ( index ) ,
102
102
data : [ className ] ,
103
103
textEdit : {
104
- newText : opacity ,
105
- range : {
106
- ...replacementRange ,
107
- start : {
108
- ...replacementRange . start ,
109
- character : replacementRange . start . character + beforeSlash . length + 1 ,
110
- } ,
111
- } ,
104
+ newText : className ,
105
+ range : replacementRange ,
112
106
} ,
113
107
}
114
108
} ) ,
You can’t perform that action at this time.
0 commit comments