Skip to content

Commit

Permalink
Proposed API for now (#111371)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmarti committed Sep 10, 2021
1 parent 84ea7af commit e5ebb48
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/vs/vscode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions src/vs/vscode.proposed.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

This comment has been minimized.

Copy link
@jrieken

jrieken Sep 10, 2021

Member

@chrmarti this proposed API doesn't seem to be enforces, e.g its implementation needs a check iff the consuming extension can actually use proposed API


}

//#endregion

//#region editor insets: https://github.com/microsoft/vscode/issues/85682
Expand Down

0 comments on commit e5ebb48

Please sign in to comment.