mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
This request allows IDEs to disable SourceKit-LSP’s background indexing functionality when it requires all compute resources for other, more interactive, tasks.
27 lines
1.0 KiB
Swift
27 lines
1.0 KiB
Swift
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the Swift.org open source project
|
|
//
|
|
// Copyright (c) 2014 - 2025 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
/// New request to modify runtime options of SourceKit-LSP.
|
|
//
|
|
/// Any options not specified in this request will be left as-is.
|
|
public struct SetOptionsRequest: RequestType {
|
|
public static let method: String = "workspace/_setOptions"
|
|
public typealias Response = VoidResponse
|
|
|
|
/// `true` to pause background indexing or `false` to resume background indexing.
|
|
public var backgroundIndexingPaused: Bool?
|
|
|
|
public init(backgroundIndexingPaused: Bool?) {
|
|
self.backgroundIndexingPaused = backgroundIndexingPaused
|
|
}
|
|
}
|