mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-06 18:24:36 +01:00
35 lines
1.5 KiB
Swift
35 lines
1.5 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
/// An experimental feature that can be enabled by passing `--experimental-feature`
|
|
/// to `sourcekit-lsp` on the command line or through the configuration file.
|
|
/// The raw value of this feature is how it is named on the command line and in the configuration file.
|
|
public enum ExperimentalFeature: String, Codable, Sendable, CaseIterable {
|
|
/// Enable support for the `textDocument/onTypeFormatting` request.
|
|
case onTypeFormatting = "on-type-formatting"
|
|
|
|
/// Enable support for the `workspace/_setOptions` request.
|
|
case setOptionsRequest = "set-options-request"
|
|
|
|
/// Enable the `workspace/_sourceKitOptions` request.
|
|
case sourceKitOptionsRequest = "sourcekit-options-request"
|
|
|
|
/// Enable the `sourceKit/_isIndexing` request.
|
|
case isIndexingRequest = "is-indexing-request"
|
|
|
|
/// Indicate that the client can handle the experimental `structure` field in the `window/logMessage` notification.
|
|
case structuredLogs = "structured-logs"
|
|
|
|
/// Enable the `workspace/_outputPaths` request.
|
|
case outputPathsRequest = "output-paths-request"
|
|
}
|