From 5317161d56df4386706b13f19fa0e93d37fad274 Mon Sep 17 00:00:00 2001 From: hyx0329 Date: Tue, 12 Mar 2024 22:32:03 +0800 Subject: [PATCH] Fix RTT terminal creation --- src/extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.ts b/src/extension.ts index ca793ef..0ea8c78 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -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);