Skip to content
Open
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 Sources/sourcekit-lsp/SourceKitLSP.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
//
//===----------------------------------------------------------------------===//

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 BuildSystemIntegration
import Csourcekitd // Not needed here, but fixes debugging...
import Diagnose
Expand Down Expand Up @@ -56,6 +58,7 @@ struct SourceKitLSP: AsyncParsableCommand {
static let configuration = CommandConfiguration(
commandName: "sourcekit-lsp",
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