Files
sourcekit-lsp/Sources/Diagnose/GenericError.swift
Alex Hoppen d3cfe3e811 Add a debug subcommand that shows the requests that are currently being handled by SourceKit-LSP
Useful to debug where SourceKit-LSP is currently spending its time if semantic functionality seems to be hanging.
2024-08-16 21:28:28 -07:00

20 lines
674 B
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
//
//===----------------------------------------------------------------------===//
struct GenericError: Error, CustomStringConvertible {
let description: String
init(_ description: String) {
self.description = description
}
}