Skip to content

Commit f4b086e

Browse files
remove closeDocument(uri:) from TestSourceKitLSPClient
1 parent cc1e404 commit f4b086e

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

Sources/SKTestSupport/TestSourceKitLSPClient.swift

-5
Original file line numberDiff line numberDiff line change
@@ -425,11 +425,6 @@ package final class TestSourceKitLSPClient: MessageHandler, Sendable {
425425

426426
return DocumentPositions(markers: markers, textWithoutMarkers: textWithoutMarkers)
427427
}
428-
429-
/// Closes the document with the given URI.
430-
package func closeDocument(uri: DocumentURI) {
431-
self.send(DidCloseTextDocumentNotification(textDocument: TextDocumentIdentifier(uri)))
432-
}
433428
}
434429

435430
// MARK: - DocumentPositions

Tests/SourceKitLSPTests/DoccDocumentationTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ fileprivate func renderDocumentation(
695695
) async throws {
696696
let (uri, positions) = try project.openDocument(fileName)
697697
defer {
698-
project.testClient.closeDocument(uri: uri)
698+
project.testClient.send(DidCloseTextDocumentNotification(textDocument: TextDocumentIdentifier(uri)))
699699
}
700700

701701
await renderDocumentation(

0 commit comments

Comments
 (0)