Skip to content

Commit b21edcd

Browse files
authored
Merge pull request #621 from compnerd/normalised
SourceKitLSP: normalise paths for clangd
2 parents cf91181 + b668f99 commit b21edcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SourceKitLSP/Clang/ClangLanguageServer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ extension ClangLanguageServerShim {
420420
if let compileCommand = clangBuildSettings?.compileCommand {
421421
let note = DidChangeConfigurationNotification(settings: .clangd(
422422
ClangWorkspaceSettings(
423-
compilationDatabaseChanges: [url.path: compileCommand])))
423+
compilationDatabaseChanges: [AbsolutePath(url.path).pathString: compileCommand])))
424424
forwardNotificationToClangdOnQueue(note)
425425
}
426426
}

0 commit comments

Comments
 (0)