From e5ebb4821954541b3887fe3bc9226dad02efcb3a Mon Sep 17 00:00:00 2001 From: Christof Marti Date: Fri, 10 Sep 2021 09:25:12 +0200 Subject: [PATCH] Proposed API for now (#111371) --- src/vs/vscode.d.ts | 11 ----------- src/vs/vscode.proposed.d.ts | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/vs/vscode.d.ts b/src/vs/vscode.d.ts index 60a7c72896f..3e35c909840 100644 --- a/src/vs/vscode.d.ts +++ b/src/vs/vscode.d.ts @@ -8277,17 +8277,6 @@ declare module 'vscode' { */ export const remoteName: string | undefined; - /** - * The authority part of the current opened `vscode-remote://` URI. - * Defined by extensions, e.g. `ssh-remote+${host}` for remotes using a secure shell. - * - * *Note* that the value is `undefined` when there is no remote extension host but that the - * value is defined in all extension hosts (local and remote) in case a remote extension host - * exists. Use {@link Extension.extensionKind} to know if - * a specific extension runs remote or not. - */ - export const remoteAuthority: string | undefined; - /** * The detected default shell for the extension host, this is overridden by the * `terminal.integrated.shell` setting for the extension host's platform. Note that in diff --git a/src/vs/vscode.proposed.d.ts b/src/vs/vscode.proposed.d.ts index 74247afc58e..726ec43319a 100644 --- a/src/vs/vscode.proposed.d.ts +++ b/src/vs/vscode.proposed.d.ts @@ -229,6 +229,21 @@ declare module 'vscode' { export function registerResourceLabelFormatter(formatter: ResourceLabelFormatter): Disposable; } + export namespace env { + + /** + * The authority part of the current opened `vscode-remote://` URI. + * Defined by extensions, e.g. `ssh-remote+${host}` for remotes using a secure shell. + * + * *Note* that the value is `undefined` when there is no remote extension host but that the + * value is defined in all extension hosts (local and remote) in case a remote extension host + * exists. Use {@link Extension.extensionKind} to know if + * a specific extension runs remote or not. + */ + export const remoteAuthority: string | undefined; + + } + //#endregion //#region editor insets: https://github.com/microsoft/vscode/issues/85682 -- GitLab