remove vscode.env.remoteAuthority API, #74188

This commit is contained in:
Johannes Rieken
2019-05-29 10:33:22 +02:00
parent 6b6e21d786
commit 5cfeefdaa9
2 changed files with 0 additions and 30 deletions

View File

@@ -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
};
}
});