mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
This allows us to flip the default in the future more easily. It also allows users to disable background indexing when it’s enabled by default. rdar://130280855
22 lines
1.1 KiB
Swift
22 lines
1.1 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. The raw value of this feature is how it is named on the command line.
|
|
public enum ExperimentalFeature: String, Codable, Sendable, CaseIterable {
|
|
/// Add `--experimental-prepare-for-indexing` to the `swift build` command run to prepare a target for indexing.
|
|
case swiftpmPrepareForIndexing = "swiftpm-prepare-for-indexing"
|
|
|
|
/// Enable showing macro expansions via `ShowDocumentRequest`
|
|
case showMacroExpansions = "show-macro-expansions"
|
|
}
|