Skip to content

Commit e1a2b5d

Browse files
authored
Merge pull request #1709 from plemarquand/dont-sort-codeactions
Don't sort CodeActions
2 parents d09caf5 + 8795481 commit e1a2b5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/SourceKitLSP/Swift/SwiftLanguageService.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,8 @@ extension SwiftLanguageService {
844844
// Ignore any providers that failed to provide refactoring actions.
845845
return []
846846
}
847-
}.flatMap { $0 }.sorted { $0.title < $1.title }
847+
}
848+
.flatMap { $0 }
848849
}
849850

850851
func retrieveSyntaxCodeActions(_ request: CodeActionRequest) async throws -> [CodeAction] {

0 commit comments

Comments
 (0)