Skip to content

Commit e397e02

Browse files
committed
Use .get()! instead of the unsupported [] to access LinkedMap
1 parent 5637011 commit e397e02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/parts/tasks/electron-browser/terminalTaskSystem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ export class TerminalTaskSystem implements ITaskSystem {
876876
// Search for any idle terminal used previously by a task of the same terminalGroup
877877
// (or, if the task has no terminalGroup, a terminal used by a task without terminalGroup).
878878
for (const taskId of this.idleTaskTerminals.keys()) {
879-
const idleTerminalId = this.idleTaskTerminals[taskId];
879+
const idleTerminalId = this.idleTaskTerminals.get(taskId)!;
880880
if (this.terminals[idleTerminalId].terminalGroup === terminalGroup) {
881881
terminalId = this.idleTaskTerminals.remove(taskId);
882882
break;

0 commit comments

Comments
 (0)