mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-11 11:19:26 +00:00
Patch for: - eclipse-theia/theia#11871 - eclipse-theia/theia#11879 - eclipse-theia/theia#11880 - eclipse-theia/theia#11885 - eclipse-theia/theia#11886 - eclipse-theia/theia#11916 Closes #1582 Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
23 lines
868 B
TypeScript
23 lines
868 B
TypeScript
import { DebugStackFrame as TheiaDebugStackFrame } from '@theia/debug/lib/browser/model/debug-stack-frame';
|
|
import { DebugThread as TheiaDebugThread } from '@theia/debug/lib/browser/model/debug-thread';
|
|
import { DebugProtocol } from '@vscode/debugprotocol';
|
|
import { DebugStackFrame } from './debug-stack-frame';
|
|
|
|
export class DebugThread extends TheiaDebugThread {
|
|
protected override doUpdateFrames(
|
|
frames: DebugProtocol.StackFrame[]
|
|
): TheiaDebugStackFrame[] {
|
|
const result = new Set<TheiaDebugStackFrame>();
|
|
for (const raw of frames) {
|
|
const id = raw.id;
|
|
const frame =
|
|
this._frames.get(id) || new DebugStackFrame(this, this.session); // patched debug stack frame
|
|
this._frames.set(id, frame);
|
|
frame.update({ raw });
|
|
result.add(frame);
|
|
}
|
|
this.updateCurrentFrame();
|
|
return [...result.values()];
|
|
}
|
|
}
|