sussudio
Version:
An unofficial VS Code Internal API
18 lines (17 loc) • 1.21 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.
*--------------------------------------------------------------------------------------------*/
/// <reference types="node" />
import { Stats } from 'fs';
import { URI } from "../../../base/common/uri.mjs";
import { IEmptyWorkspaceIdentifier, ISingleFolderWorkspaceIdentifier, IWorkspaceIdentifier } from "../../workspace/common/workspace.mjs";
/**
* Length of workspace identifiers that are not empty. Those are
* MD5 hashes (128bits / 4 due to hex presentation).
*/
export declare const NON_EMPTY_WORKSPACE_ID_LENGTH: number;
export declare function getWorkspaceIdentifier(configPath: URI): IWorkspaceIdentifier;
export declare function getSingleFolderWorkspaceIdentifier(folderUri: URI): ISingleFolderWorkspaceIdentifier | undefined;
export declare function getSingleFolderWorkspaceIdentifier(folderUri: URI, folderStat: Stats): ISingleFolderWorkspaceIdentifier;
export declare function createEmptyWorkspaceIdentifier(): IEmptyWorkspaceIdentifier;