mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
Allow workspace options to affect build system search
There were a few places that options only took place *after* determining
a build system, even though we have multiple that impact the search (eg.
`defaultBuildSystem` and `searchPaths`).
Additionally track project root and configuration paths separately, so
that when searching for implicit workspaces we can make sure to skip
creating duplicates.
(cherry picked from commit 0c896696c9)
This commit is contained in:
@@ -35,11 +35,6 @@ package struct PrepareNotSupportedError: Error, CustomStringConvertible {
|
||||
|
||||
/// Provider of FileBuildSettings and other build-related information.
|
||||
package protocol BuiltInBuildSystem: AnyObject, Sendable {
|
||||
/// The root of the project that this build system manages. For example, for SwiftPM packages, this is the folder
|
||||
/// containing Package.swift. For compilation databases it is the root folder based on which the compilation database
|
||||
/// was found.
|
||||
var projectRoot: URL { get async }
|
||||
|
||||
/// The files to watch for changes.
|
||||
var fileWatchers: [FileSystemWatcher] { get async }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user