Skip to content

Commit

Permalink
Update src/vs/workbench/services/suggest/browser/simpleCompletionMode…
Browse files Browse the repository at this point in the history
…l.ts
  • Loading branch information
meganrogge authored Jan 30, 2025
1 parent 4177edc commit 4cb35f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export class SimpleCompletionModel {
score = a.fileExtLow.length - b.fileExtLow.length;
}
if (score === 0 || fileExtScore(a.fileExtLow) === 0 && fileExtScore(b.fileExtLow) === 0) {
// both files or directories, sort alphabetically
// both files or directories, sort alphabetically
// Sort by label length ascending
score = a.completion.label.length - b.completion.label.length;
if (score !== 0) {
Expand Down

0 comments on commit 4cb35f7

Please sign in to comment.