Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Tests/SourceKitLSPTests/SwiftCompletionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,9 @@ final class SwiftCompletionTests: XCTestCase {
)
)

// Synchronize to make sure that the edit to Second.swift has been processed since opening First.swift and the
// completion request do not have any dependencies on the edit of Second.swift.
try await project.testClient.send(SynchronizeRequest())
let (firstUri, firstPositions) = try project.openDocument("First.swift")
let completions = try await project.testClient.send(
CompletionRequest(textDocument: TextDocumentIdentifier(firstUri), position: firstPositions["1️⃣"])
Expand Down