LocalizationService.update no longer needed. Fixes https://github.com/microsoft/vssaas-planning/issues/3290

This commit is contained in:
Martin Aeschlimann
2021-03-26 12:14:47 +01:00
parent 70aab480c5
commit 1eb987f85f
4 changed files with 10 additions and 26 deletions

View File

@@ -166,7 +166,6 @@ export class CLIServerBase {
}
private async manageExtensions(data: ExtensionManagementPipeArgs, res: http.ServerResponse) {
console.log('server: manageExtensions');
try {
const toExtOrVSIX = (inputs: string[] | undefined) => inputs?.map(input => /\.vsix$/i.test(input) ? URI.parse(input) : input);
const commandArgs = {
@@ -175,12 +174,16 @@ export class CLIServerBase {
uninstall: toExtOrVSIX(data.uninstall),
force: data.force
};
const output = await this._commands.executeCommand('_remoteCLI.manageExtensions', commandArgs, { allowTunneling: true });
const output = await this._commands.executeCommand('_remoteCLI.manageExtensions', commandArgs);
res.writeHead(200);
res.write(output);
} catch (e) {
} catch (err) {
res.writeHead(500);
res.write(String(e));
res.write(String(err), err => {
if (err) {
this.logService.error(err);
}
});
}
res.end();
}