Skip to content

Commit 6067c88

Browse files
committed
Call indexProgressManager.indexStatusDidChange when workspaces in the SourceKitLSPServer are modified
`IndexProgressManager` iterates over all workspaces in the SourceKitLSPServer. Modifying workspaces might thus update the index progress status.
1 parent f0be6d6 commit 6067c88

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/SourceKitLSP/SourceKitLSPServer.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,9 @@ public actor SourceKitLSPServer {
507507
private var workspacesAndIsImplicit: [(workspace: Workspace, isImplicit: Bool)] = [] {
508508
didSet {
509509
uriToWorkspaceCache = [:]
510+
// `indexProgressManager` iterates over all workspaces in the SourceKitLSPServer. Modifying workspaces might thus
511+
// update the index progress status.
512+
indexProgressManager.indexStatusDidChange()
510513
}
511514
}
512515

0 commit comments

Comments
 (0)