@sussudio/platform
Version:
Internal APIs for VS Code's service injection the base services.
22 lines (20 loc) • 1.09 kB
text/typescript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { URI } from '@sussudio/base/common/uri.mjs';
import { ICodeWindow } from '../../window/electron-main/window.mjs';
import { IResolvedWorkspace, IWorkspaceIdentifier } from '../../workspace/common/workspace.mjs';
export declare function findWindowOnFile(
windows: ICodeWindow[],
fileUri: URI,
localWorkspaceResolver: (workspace: IWorkspaceIdentifier) => Promise<IResolvedWorkspace | undefined>,
): Promise<ICodeWindow | undefined>;
export declare function findWindowOnWorkspaceOrFolder(
windows: ICodeWindow[],
folderOrWorkspaceConfigUri: URI,
): ICodeWindow | undefined;
export declare function findWindowOnExtensionDevelopmentPath(
windows: ICodeWindow[],
extensionDevelopmentPaths: string[],
): ICodeWindow | undefined;