Skip to content

Commit c01ae64

Browse files
committed
Fix errors after 1.60.0 update
1 parent 50f626e commit c01ae64

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

src/vs/gitpod/node/server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { RemoteTerminalChannelServer } from 'vs/gitpod/node/remoteTerminalChanne
2121
import type { ServerExtensionHostConnection } from 'vs/gitpod/node/server-extension-host-connection';
2222
import { infoServiceClient, statusServiceClient, supervisorAddr, supervisorDeadlines, supervisorMetadata } from 'vs/gitpod/node/supervisor-client';
2323
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
24-
import { IExtensionGalleryService, IExtensionManagementCLIService, IExtensionManagementService } from 'vs/platform/extensionManagement/common/extensionManagement';
24+
import { IExtensionGalleryService, IExtensionManagementCLIService, IExtensionManagementService, CURRENT_TARGET_PLATFORM } from 'vs/platform/extensionManagement/common/extensionManagement';
2525
import { ExtensionManagementCLIService } from 'vs/platform/extensionManagement/common/extensionManagementCLIService';
2626
import { ExtensionType } from 'vs/platform/extensions/common/extensions';
2727
import { IFileService } from 'vs/platform/files/common/files';
@@ -296,7 +296,7 @@ main({
296296
const lookup = new Set(param.extensions.map(({ id }) => id));
297297
const uninstalled = new Set<string>([...lookup]);
298298
lookup.add('github.vscode-pull-request-github');
299-
const extensionIds = param.extensions.filter(({ version }) => version === undefined).map(({ id }) => id);
299+
const extensionIds = param.extensions.filter(({ version }) => version === undefined).map(({ id }) => ({ id }));
300300
const extensionsWithIdAndVersion = param.extensions.filter(({ version }) => version !== undefined);
301301
await Promise.all([
302302
extensionManagementService.getInstalled(ExtensionType.User).then(extensions => {
@@ -311,7 +311,7 @@ main({
311311
extensionGalleryService.getExtensions(extensionIds, token).then(result =>
312312
result.forEach(extension => extensions.add(extension.identifier.id.toLocaleLowerCase())), () => { }),
313313
...extensionsWithIdAndVersion.map(({ id, version }) =>
314-
extensionGalleryService.getCompatibleExtension({ id }, version, token).
314+
extensionGalleryService.getCompatibleExtension({ id }, CURRENT_TARGET_PLATFORM).
315315
then(extension => extension && extensions.add(extension.identifier.id.toLocaleLowerCase()), () => { })),
316316
...param.links.map(async vsix => {
317317
try {

src/vs/gitpod/node/supervisorTerminalProcess.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export class SupervisorTerminalProcess extends DisposableStore implements ITermi
9090
this.add(this.onProcessExit(() => this._bufferer.stopBuffering(this.id)));
9191

9292
// Data recording for reconnect
93-
this.add(this._onProcessData.event(e => this._recorder.recordData(e)));
93+
this.add(this._onProcessData.event(e => this._recorder.handleData(e)));
9494

9595
this.add({
9696
dispose: () => {
@@ -112,7 +112,7 @@ export class SupervisorTerminalProcess extends DisposableStore implements ITermi
112112
this._onProcessReady.fire({ pid: this.syncState.getPid(), cwd: this.syncState.getCurrentWorkdir() });
113113
this._onProcessTitleChanged.fire(this.syncState.getTitle());
114114
this.monitorChildProcess();
115-
this.triggerReplay();
115+
await this.triggerReplay();
116116
this.listen();
117117
return undefined;
118118
}
@@ -398,6 +398,10 @@ export class SupervisorTerminalProcess extends DisposableStore implements ITermi
398398
});
399399
}
400400

401+
async setUnicodeVersion(version: '6' | '11'): Promise<void> {
402+
// No-op
403+
}
404+
401405
getInitialCwd(): Promise<string> {
402406
return Promise.resolve(this.initialCwd);
403407
}
@@ -429,7 +433,7 @@ export class SupervisorTerminalProcess extends DisposableStore implements ITermi
429433
}
430434

431435
private toSize(cols: number, rows: number): TerminalSize | undefined {
432-
this._recorder.recordResize(cols, rows);
436+
this._recorder.handleResize(cols, rows);
433437

434438
if (typeof cols !== 'number' || typeof rows !== 'number' || isNaN(cols) || isNaN(rows)) {
435439
return undefined;
@@ -440,8 +444,8 @@ export class SupervisorTerminalProcess extends DisposableStore implements ITermi
440444
return size;
441445
}
442446

443-
private triggerReplay(): void {
444-
const event = this._recorder.generateReplayEvent();
447+
private async triggerReplay(): Promise<void> {
448+
const event = await this._recorder.generateReplayEvent();
445449
this._onProcessReplay.fire(event);
446450
}
447451

0 commit comments

Comments
 (0)