mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
add vscode.env.remoteAuthority-api, #74188
This commit is contained in:
parent
a00a9a2945
commit
6a1574e21e
11
src/vs/vscode.d.ts
vendored
11
src/vs/vscode.d.ts
vendored
|
@ -6040,6 +6040,17 @@ declare module 'vscode' {
|
|||
* @returns A promise indicating if open was successful.
|
||||
*/
|
||||
export function openExternal(target: Uri): Thenable<boolean>;
|
||||
|
||||
/**
|
||||
* The [authority](#Uri.authority)-component. When `undefined`, extensions are
|
||||
* executed in the same context (e.g. operating system or machine) in which the UI
|
||||
* of the editor is executed. If defined, extensions are running on a different
|
||||
* context, for instance a remote machine.
|
||||
*
|
||||
* *Note* that no assumptions about the actual value should be made as it is defined
|
||||
* by extensions and not by the editor.
|
||||
*/
|
||||
export const remoteAuthority: string | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -256,7 +256,8 @@ export function createApiFactory(
|
|||
},
|
||||
openExternal(uri: URI) {
|
||||
return extHostWindow.openUri(uri, { allowTunneling: !!initData.remoteAuthority });
|
||||
}
|
||||
},
|
||||
get remoteAuthority() { return initData.remoteAuthority || undefined; }
|
||||
});
|
||||
|
||||
// namespace: extensions
|
||||
|
|
Loading…
Reference in a new issue