提交 84ea7afc 编写于 作者: A Anton Kosyakov 提交者: Christof Marti

[vscode-ext-api] fix #111371: expose remote authority

上级 6262da9c
......@@ -8277,6 +8277,17 @@ 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
......
......@@ -332,6 +332,9 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
get remoteName() {
return getRemoteName(initData.remote.authority);
},
get remoteAuthority() {
return initData.remote.authority;
},
get uiKind() {
return initData.uiKind;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册