Skip to content

Commit 86df3dd

Browse files
committed
Update capability definitions to LSP 3.17
1 parent f05ac4b commit 86df3dd

File tree

8 files changed

+553
-80
lines changed

8 files changed

+553
-80
lines changed

Sources/LanguageServerProtocol/SupportTypes/CodeActionKind.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ public struct CodeActionKind: RawRepresentable, Codable, Hashable {
2121
self.rawValue = rawValue
2222
}
2323

24+
/// Empty kind.
25+
public static let empty: CodeActionKind = CodeActionKind(rawValue: "")
26+
2427
/// QuickFix action, such as FixIt.
2528
public static let quickFix: CodeActionKind = CodeActionKind(rawValue: "quickfix")
2629

@@ -43,4 +46,9 @@ public struct CodeActionKind: RawRepresentable, Codable, Hashable {
4346

4447
/// Organize imports action.
4548
public static let sourceOrganizeImports: CodeActionKind = CodeActionKind(rawValue: "source.organizeImports")
49+
50+
/// 'Fix all' actions automatically fix errors that have a clear fix that
51+
/// do not require user input. They should not suppress errors or perform
52+
/// unsafe fixes such as generating new types or classes.
53+
public static let sourceFixAll: CodeActionKind = CodeActionKind(rawValue: "source.fixAll")
4654
}

0 commit comments

Comments
 (0)