Closed ahoppen closed 1 month ago
The alphabetized response is actually coming directly from sourcekit-lsp. The code that sorts the returned code actions can be found here: https://github.com/swiftlang/sourcekit-lsp/blob/ffed667c538789daf6e15477f0c89a80a481d7eb/Sources/SourceKitLSP/Swift/SwiftLanguageService.swift#L847
If this response shouldn't be sorted I'd be happy to write up a PR.
Synced to Apple’s issue tracker as rdar://136373062
When I have the following code
And invoke code actions on
throwing()
, then VS Code showsDid you mean to disable error propagation?
as the first item, despite it being the worst of the three options. I assume that’s because it’s ordering code actions alphabetically. Is there a way to show them in the order that SourceKit-LSP returns them, which would showDid you mean to use 'try'?
as the first option?