remote cli: open URL: %2F lost. Fixes microsoft/vscode-remote-release#4421

This commit is contained in:
Martin Aeschlimann
2021-02-05 11:41:04 +01:00
parent cdc8628d55
commit a9b412330a
2 changed files with 6 additions and 5 deletions

View File

@@ -156,8 +156,10 @@ export class CLIServerBase {
}
private async openExternal(data: OpenExternalCommandPipeArgs, res: http.ServerResponse) {
for (const uri of data.uris) {
await this._commands.executeCommand('_remoteCLI.openExternal', URI.parse(uri), { allowTunneling: true });
for (const uriString of data.uris) {
const uri = URI.parse(uriString);
const urioOpen = uri.scheme === 'file' ? uri : uriString; // workaround for #112577
await this._commands.executeCommand('_remoteCLI.openExternal', urioOpen);
}
res.writeHead(200);
res.end();