We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bdb2e3 commit c4f0eb2Copy full SHA for c4f0eb2
Sources/ClangLanguageService/ClangLanguageService.swift
@@ -642,9 +642,9 @@ extension ClangLanguageService {
642
position: renameRequest.position
643
)
644
let symbolDetail = try await forwardRequestToClangd(symbolInfoRequest).only
645
- let workspaceEdit = try await edits
+ let workspaceEdit = try await edits ?? WorkspaceEdit()
646
guard let workspace = self.workspace.value else {
647
- return (workspaceEdit ?? WorkspaceEdit(), symbolDetail?.usr)
+ return (workspaceEdit, symbolDetail?.usr)
648
}
649
let remappedEdit = await workspace.buildServerManager.workspaceEditAdjustedForCopiedFiles(workspaceEdit)
650
return (remappedEdit ?? WorkspaceEdit(), symbolDetail?.usr)
0 commit comments