Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

Fix terminal resize on open terminal. #38

Merged
merged 1 commit into from
Jan 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,14 @@ export class RemoteTerminalWidget extends TerminalWidgetImpl {
throw new Error('Failed to create terminal server proxy. Cause: ' + err);
}
this.terminalId = typeof id !== 'number' ? await this.createTerminal() : await this.attachTerminal(id);
this.resizeTerminalProcess();
this.connectTerminalProcess();

await this.waitForRemoteConnection;
// some delay need to attach exec. If we send resize earlier this size will be skiped.
setTimeout(async () => {
await this.resizeTerminalProcess();
}, 100);

if (IBaseTerminalServer.validateId(this.terminalId)) {
return this.terminalId;
}
Expand Down