File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,6 @@ export = function ({ typescript }: { typescript: typeof ts_module }) {
29
29
// }
30
30
// prior.isGlobalCompletion
31
31
// prior.entries[0]
32
- // Feature: Force Suggestion Sorting
33
- prior . entries = prior . entries . map ( ( entry , index ) => ( { ...entry , sortText : `${ entry . sortText ?? '' } ${ index } ` } ) )
34
32
if ( [ 'bind' , 'call' , 'caller' ] . every ( name => prior . entries . find ( entry => entry . name === name ) ) ) {
35
33
// Feature: Remove useless function props
36
34
prior . entries = prior . entries . filter ( e => ! [ 'Symbol' , 'caller' , 'prototype' ] . includes ( e . name ) )
@@ -43,6 +41,8 @@ export = function ({ typescript }: { typescript: typeof ts_module }) {
43
41
return entry
44
42
} )
45
43
}
44
+ // Feature: Force Suggestion Sorting
45
+ prior . entries = prior . entries . map ( ( entry , index ) => ( { ...entry , sortText : `${ entry . sortText ?? '' } ${ index } ` } ) )
46
46
// console.timeEnd('slow-down')
47
47
return prior
48
48
}
You can’t perform that action at this time.
0 commit comments