File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,8 +29,6 @@ export = function ({ typescript }: { typescript: typeof ts_module }) {
2929 // }
3030 // prior.isGlobalCompletion
3131 // prior.entries[0]
32- // Feature: Force Suggestion Sorting
33- prior . entries = prior . entries . map ( ( entry , index ) => ( { ...entry , sortText : `${ entry . sortText ?? '' } ${ index } ` } ) )
3432 if ( [ 'bind' , 'call' , 'caller' ] . every ( name => prior . entries . find ( entry => entry . name === name ) ) ) {
3533 // Feature: Remove useless function props
3634 prior . entries = prior . entries . filter ( e => ! [ 'Symbol' , 'caller' , 'prototype' ] . includes ( e . name ) )
@@ -43,6 +41,8 @@ export = function ({ typescript }: { typescript: typeof ts_module }) {
4341 return entry
4442 } )
4543 }
44+ // Feature: Force Suggestion Sorting
45+ prior . entries = prior . entries . map ( ( entry , index ) => ( { ...entry , sortText : `${ entry . sortText ?? '' } ${ index } ` } ) )
4646 // console.timeEnd('slow-down')
4747 return prior
4848 }
You can’t perform that action at this time.
0 commit comments