Skip to content

Commit cda8788

Browse files
committed
Improve two imports
- Import `LanguageServerProtocol` in `BuildServerProtocol/TextDocumentIdentifier.swift` because we use `URI` publicly within it. - Don’t import `LanguageServerProtocolExtensions` in `ToolchainRegistry` because it’s not needed
1 parent 233f2e6 commit cda8788

File tree

4 files changed

+2
-3
lines changed

4 files changed

+2
-3
lines changed

Package.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,6 @@ var targets: [Target] = [
444444
.target(
445445
name: "ToolchainRegistry",
446446
dependencies: [
447-
"LanguageServerProtocolExtensions",
448447
"SKLogging",
449448
"SKUtilities",
450449
"SwiftExtensions",

Sources/BuildServerProtocol/SupportTypes/TextDocumentIdentifier.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
public import LanguageServerProtocol
14+
1315
public struct TextDocumentIdentifier: Codable, Sendable, Hashable {
1416
/// The text document's URI.
1517
public var uri: URI

Sources/ToolchainRegistry/ToolchainRegistry.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import Dispatch
14-
import LanguageServerProtocolExtensions
1514
import SwiftExtensions
1615
import TSCExtensions
1716

Sources/ToolchainRegistry/XCToolchainPlist.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import Foundation
14-
import LanguageServerProtocolExtensions
1514
import SwiftExtensions
1615
import TSCExtensions
1716

0 commit comments

Comments
 (0)