Skip to content
Open
Changes from 1 commit
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
2 changes: 2 additions & 0 deletions Sources/sourcekit-lsp/SourceKitLSP.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
//===----------------------------------------------------------------------===//

import ArgumentParser
import struct Basics.SwiftVersion
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to not add a dependency on SwiftPM for this. I’ve been trying to isolate SourceKit-LSP’s dependency on SwiftPM recently and would prefer to not add a new one. I still don’t know what the best solution would be. I wrote down some of my thoughts in #1424 (comment).

import Csourcekitd // Not needed here, but fixes debugging...
import Diagnose
import Dispatch
Expand Down Expand Up @@ -103,6 +104,7 @@ extension SKSupport.WorkspaceType: @retroactive ExpressibleByArgument {}
struct SourceKitLSP: AsyncParsableCommand {
static let configuration = CommandConfiguration(
abstract: "Language Server Protocol implementation for Swift and C-based languages",
version: "sourcekit-lsp \(Basics.SwiftVersion.current.displayString)",
subcommands: [
DiagnoseCommand.self,
DebugCommand.self,
Expand Down