Skip to content

Commit e08f0a9

Browse files
committed
Set the renameProvider capability
1 parent 86553d9 commit e08f0a9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Sources/SourceKitLSP/Rename.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ extension SourceKitServer {
325325
for (url, renameLocations) in locationsByFile {
326326
let uri = DocumentURI(url)
327327
if edits.changes![uri] != nil {
328-
// We already have edits for this document provided by the language service, so we don't need to compute
328+
// We already have edits for this document provided by the language service, so we don't need to compute
329329
// rename ranges for it.
330330
continue
331331
}

Sources/SourceKitLSP/SourceKitServer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,7 @@ extension SourceKitServer {
11691169
supportsCodeActions: true
11701170
)
11711171
),
1172+
renameProvider: .value(RenameOptions()),
11721173
colorProvider: .bool(true),
11731174
foldingRangeProvider: .bool(!registry.clientHasDynamicFoldingRangeRegistration),
11741175
declarationProvider: .bool(true),

0 commit comments

Comments
 (0)