Skip to content

Commit 519232d

Browse files
committed
add optional properties to StackFrame; #172
1 parent da33fb6 commit 519232d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

adapter/src/debugSession.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,16 @@ export class Scope implements DebugProtocol.Scope {
4242

4343
export class StackFrame implements DebugProtocol.StackFrame {
4444
id: number;
45-
source: Source;
45+
name: string;
46+
source?: Source;
4647
line: number;
4748
column: number;
48-
name: string;
49+
endLine?: number;
50+
endColumn?: number;
51+
canRestart?: boolean;
52+
instructionPointerReference?: string;
53+
moduleId?: number | string;
54+
presentationHint?: 'normal' | 'label' | 'subtle';
4955

5056
public constructor(i: number, nm: string, src?: Source, ln: number = 0, col: number = 0) {
5157
this.id = i;

0 commit comments

Comments
 (0)