mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
Allow non-file URLs when injecting a build system
There is no reason why we should only support file URLs here.
This commit is contained in:
@@ -72,8 +72,12 @@ package func determineBuildSystem(
|
||||
options: SourceKitLSPOptions,
|
||||
hooks: BuildSystemHooks
|
||||
) -> BuildSystemSpec? {
|
||||
if let workspaceURL = workspaceFolder.fileURL, let buildSystemInjector = hooks.buildSystemInjector {
|
||||
return BuildSystemSpec(kind: .injected(buildSystemInjector), projectRoot: workspaceURL, configPath: workspaceURL)
|
||||
if let buildSystemInjector = hooks.buildSystemInjector {
|
||||
return BuildSystemSpec(
|
||||
kind: .injected(buildSystemInjector),
|
||||
projectRoot: workspaceFolder.arbitrarySchemeURL,
|
||||
configPath: workspaceFolder.arbitrarySchemeURL
|
||||
)
|
||||
}
|
||||
|
||||
var buildSystemPreference: [WorkspaceType] = [
|
||||
|
||||
Reference in New Issue
Block a user