UNPKG

@sussudio/platform

Version:

Internal APIs for VS Code's service injection the base services.

28 lines (26 loc) 1.23 kB
/*--------------------------------------------------------------------------------------------- * 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 '@sussudio/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;