Skip to content

Commit

Permalink
Fix RTT terminal creation
Browse files Browse the repository at this point in the history
  • Loading branch information
hyx0329 committed Mar 12, 2024
1 parent 23f7b8a commit 5317161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class ProbeRSDebugAdapterServerDescriptorFactory implements vscode.DebugAdapterD
name: channelName,
pty: channelPty,
};
for (let index in this.rttTerminals) {
for (let index = 0; index < this.rttTerminals.length; index++) {
var [formerChannelNumber, , ,] = this.rttTerminals[index];
if (formerChannelNumber === channelNumber) {
this.rttTerminals.splice(+index, 1);
Expand Down

0 comments on commit 5317161

Please sign in to comment.