mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
Showing the list of active requests didn’t turn out to be very useful for debugging. What is more useful, however, is to visualize the requests as the get enqueued and handled in a trace chart. This gives a very intuitive view of which request is blocking another request from getting executed.
34 lines
1.0 KiB
Swift
34 lines
1.0 KiB
Swift
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the Swift.org open source project
|
|
//
|
|
// Copyright (c) 2014 - 2024 Apple Inc. and the Swift project authors
|
|
// Licensed under Apache License v2.0 with Runtime Library Exception
|
|
//
|
|
// See https://swift.org/LICENSE.txt for license information
|
|
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#if compiler(>=6)
|
|
package import ArgumentParser
|
|
#else
|
|
import ArgumentParser
|
|
#endif
|
|
|
|
package struct DebugCommand: ParsableCommand {
|
|
package static let configuration = CommandConfiguration(
|
|
commandName: "debug",
|
|
abstract: "Commands to debug sourcekit-lsp. Intended for developers of sourcekit-lsp",
|
|
subcommands: [
|
|
IndexCommand.self,
|
|
ReduceCommand.self,
|
|
ReduceFrontendCommand.self,
|
|
RunSourceKitdRequestCommand.self,
|
|
TraceFromSignpostsCommand.self,
|
|
]
|
|
)
|
|
|
|
package init() {}
|
|
}
|