File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
Sources/SourceKitLSP/Swift Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -68,12 +68,8 @@ extension CodeAction {
68
68
textEdits. append ( TextEdit ( range: startPosition..< endPosition, newText: edit. replacement) )
69
69
}
70
70
71
- guard let title = Self . title ( for: textEdits, in: snapshot) else {
72
- return nil
73
- }
74
-
75
71
self . init (
76
- title: title ,
72
+ title: fixIt . message . message . withFirstLetterUppercased ( ) ,
77
73
kind: . quickFix,
78
74
diagnostics: nil ,
79
75
edit: WorkspaceEdit ( changes: [ snapshot. uri: textEdits] )
Original file line number Diff line number Diff line change @@ -446,7 +446,7 @@ final class CodeActionTests: XCTestCase {
446
446
447
447
let expectedCodeActions = [
448
448
CodeAction (
449
- title: " Replace 'Multi ' with 'Multiident '... " ,
449
+ title: " Join the identifiers together " ,
450
450
kind: . quickFix,
451
451
edit: WorkspaceEdit (
452
452
changes: [
@@ -458,7 +458,7 @@ final class CodeActionTests: XCTestCase {
458
458
)
459
459
) ,
460
460
CodeAction (
461
- title: " Replace 'Multi ' with 'MultiIdent '... " ,
461
+ title: " Join the identifiers together with camel-case " ,
462
462
kind: . quickFix,
463
463
edit: WorkspaceEdit (
464
464
changes: [
You can’t perform that action at this time.
0 commit comments