mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
remove vscode.env.remoteAuthority API, #74188
This commit is contained in:
@@ -256,21 +256,6 @@ export function createApiFactory(
|
||||
},
|
||||
openExternal(uri: URI) {
|
||||
return extHostWindow.openUri(uri, { allowTunneling: !!initData.remoteAuthority });
|
||||
},
|
||||
get remoteAuthority() {
|
||||
const { remoteAuthority } = initData;
|
||||
if (!remoteAuthority) {
|
||||
return undefined;
|
||||
}
|
||||
const idx = remoteAuthority.indexOf('+');
|
||||
if (idx < 0) {
|
||||
console.warn(`INVALID remote authority: ${remoteAuthority}`);
|
||||
return undefined;
|
||||
}
|
||||
return {
|
||||
prefix: remoteAuthority.substring(0, idx),
|
||||
toString() { return remoteAuthority; } // compatiblity
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user