File tree Expand file tree Collapse file tree 1 file changed +0
-27
lines changed
packages/tailwindcss-language-service/src Expand file tree Collapse file tree 1 file changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -189,16 +189,8 @@ export function completionsFromClassList(
189
189
} ) ,
190
190
)
191
191
} else {
192
- let shouldSortVariants = ! semver . gte ( state . version , '2.99.0' )
193
192
let resultingVariants = [ ...existingVariants , variant . name ]
194
193
195
- if ( shouldSortVariants ) {
196
- let allVariants = state . variants . map ( ( { name } ) => name )
197
- resultingVariants = resultingVariants . sort (
198
- ( a , b ) => allVariants . indexOf ( b ) - allVariants . indexOf ( a ) ,
199
- )
200
- }
201
-
202
194
let selectors : string [ ] = [ ]
203
195
204
196
try {
@@ -223,25 +215,6 @@ export function completionsFromClassList(
223
215
. map ( ( selector ) => addPixelEquivalentsToMediaQuery ( selector ) )
224
216
. join ( ', ' ) ,
225
217
textEditText : resultingVariants [ resultingVariants . length - 1 ] + sep ,
226
- additionalTextEdits :
227
- shouldSortVariants && resultingVariants . length > 1
228
- ? [
229
- {
230
- newText :
231
- resultingVariants . slice ( 0 , resultingVariants . length - 1 ) . join ( sep ) + sep ,
232
- range : {
233
- start : {
234
- ...classListRange . start ,
235
- character : classListRange . end . character - partialClassName . length ,
236
- } ,
237
- end : {
238
- ...replacementRange . start ,
239
- character : replacementRange . start . character ,
240
- } ,
241
- } ,
242
- } ,
243
- ]
244
- : [ ] ,
245
218
} ) ,
246
219
)
247
220
}
You can’t perform that action at this time.
0 commit comments