Skip to content

Commit

Permalink
Fix the problem that the pseudo-terminal open event is not triggered
Browse files Browse the repository at this point in the history
Signed-off-by: zvzuola <[email protected]>
  • Loading branch information
zvzuola committed Dec 18, 2022
1 parent 29feb48 commit 68c5bfb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/plugin-ext/src/plugin/tasks/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class TasksExtImpl implements TasksExt {
private adaptersMap = new Map<number, TaskProviderAdapter>();
private executions = new Map<number, theia.TaskExecution>();
protected callbackIdBase: string = UUID.uuid4();
protected callbackId: number;
protected callbackId: number = 0;
protected customExecutionIds: Map<ExecutionCallback, string> = new Map();
protected customExecutionFunctions: Map<string, ExecutionCallback> = new Map();
protected lastStartedTask: number | undefined;
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-ext/src/plugin/terminal-ext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ export class TerminalServiceExtImpl implements TerminalServiceExt {
terminal.deferredProcessId = new Deferred<number>();
terminal.deferredProcessId.resolve(processId);
}
// Pseudoterminal is keyed on ID
const pseudoTerminal = this._pseudoTerminals.get(id);
// Pseudoterminal is keyed on ID or terminalId
const pseudoTerminal = this._pseudoTerminals.get(id) || this._pseudoTerminals.get(terminalId.toString());
if (pseudoTerminal) {
pseudoTerminal.emitOnOpen(cols, rows);
}
Expand Down

0 comments on commit 68c5bfb

Please sign in to comment.