UNPKG

@sussudio/platform

Version:

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

28 lines (26 loc) 1.21 kB
/*--------------------------------------------------------------------------------------------- * 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'; export declare function getRemoteAuthority(uri: URI): string | undefined; export declare function getRemoteName(authority: string): string; export declare function getRemoteName(authority: undefined): undefined; export declare function getRemoteName(authority: string | undefined): string | undefined; /** * The root path to use when accessing the remote server. The path contains the quality and commit of the current build. * @param product * @returns */ export declare function getRemoteServerRootPath(product: { quality?: string; commit?: string }): string; export declare function parseAuthorityWithPort(authority: string): { host: string; port: number; }; export declare function parseAuthorityWithOptionalPort( authority: string, defaultPort: number, ): { host: string; port: number; };