Skip to content

Commit

Permalink
Merge pull request #88 from hyx0329/master
Browse files Browse the repository at this point in the history
Fix RTT terminal creation
  • Loading branch information
noppej authored Mar 12, 2024
2 parents 23f7b8a + 5317161 commit 2d8cf18
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 2d8cf18

Please sign in to comment.