Skip to content

Commit 5cfeefd

Browse files
committed
remove vscode.env.remoteAuthority API, microsoft#74188
1 parent 6b6e21d commit 5cfeefd

2 files changed

Lines changed: 0 additions & 30 deletions

File tree

src/vs/vscode.d.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6040,21 +6040,6 @@ declare module 'vscode' {
60406040
* @returns A promise indicating if open was successful.
60416041
*/
60426042
export function openExternal(target: Uri): Thenable<boolean>;
6043-
6044-
/**
6045-
* Information about running remotely. When `undefined`, extensions are executed in the same
6046-
* context (e.g. operating system or machine) in which the UI of the editor is executed.
6047-
* If defined, extensions are running in a different context, for instance a remote machine.
6048-
*
6049-
* A remote [uri](#Uri) adheres to this format: `remote_scheme://auth_prefix+auth_rest/path` where
6050-
* the `remote_scheme` is defined by the editor, `auth_prefix` and `auth_rest` are defined by extensions,
6051-
* and `path` is defined by the user.
6052-
*
6053-
* Extensions contributing a remote are encouraged to use a stable `auth_prefix`-value,
6054-
* e.g `remote_scheme://ssh+23/` and `remote_scheme://ssh+42`. Such prefix is exposed
6055-
* in the `prefix`-property of the returned object.
6056-
*/
6057-
export const remoteAuthority: { prefix: string } | undefined;
60586043
}
60596044

60606045
/**

src/vs/workbench/api/node/extHost.api.impl.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -256,21 +256,6 @@ export function createApiFactory(
256256
},
257257
openExternal(uri: URI) {
258258
return extHostWindow.openUri(uri, { allowTunneling: !!initData.remoteAuthority });
259-
},
260-
get remoteAuthority() {
261-
const { remoteAuthority } = initData;
262-
if (!remoteAuthority) {
263-
return undefined;
264-
}
265-
const idx = remoteAuthority.indexOf('+');
266-
if (idx < 0) {
267-
console.warn(`INVALID remote authority: ${remoteAuthority}`);
268-
return undefined;
269-
}
270-
return {
271-
prefix: remoteAuthority.substring(0, idx),
272-
toString() { return remoteAuthority; } // compatiblity
273-
};
274259
}
275260
});
276261

0 commit comments

Comments
 (0)