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(
189189 } ) ,
190190 )
191191 } else {
192- let shouldSortVariants = ! semver . gte ( state . version , '2.99.0' )
193192 let resultingVariants = [ ...existingVariants , variant . name ]
194193
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-
202194 let selectors : string [ ] = [ ]
203195
204196 try {
@@ -223,25 +215,6 @@ export function completionsFromClassList(
223215 . map ( ( selector ) => addPixelEquivalentsToMediaQuery ( selector ) )
224216 . join ( ', ' ) ,
225217 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- : [ ] ,
245218 } ) ,
246219 )
247220 }
You can’t perform that action at this time.
0 commit comments