Skip to content

Commit 89d0712

Browse files
committed
use DAP types
1 parent 4656cd7 commit 89d0712

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

adapter/src/debugSession.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class Scope implements DebugProtocol.Scope {
4343
export class StackFrame implements DebugProtocol.StackFrame {
4444
id: number;
4545
name: string;
46-
source?: Source;
46+
source?: DebugProtocol.Source;
4747
line: number;
4848
column: number;
4949
endLine?: number;
@@ -242,10 +242,10 @@ export class ThreadEvent extends Event implements DebugProtocol.ThreadEvent {
242242
export class BreakpointEvent extends Event implements DebugProtocol.BreakpointEvent {
243243
body: {
244244
reason: string,
245-
breakpoint: Breakpoint
245+
breakpoint: DebugProtocol.Breakpoint
246246
};
247247

248-
public constructor(reason: string, breakpoint: Breakpoint) {
248+
public constructor(reason: string, breakpoint: DebugProtocol.Breakpoint) {
249249
super('breakpoint');
250250
this.body = {
251251
reason: reason,
@@ -257,10 +257,10 @@ export class BreakpointEvent extends Event implements DebugProtocol.BreakpointEv
257257
export class ModuleEvent extends Event implements DebugProtocol.ModuleEvent {
258258
body: {
259259
reason: 'new' | 'changed' | 'removed',
260-
module: Module
260+
module: DebugProtocol.Module
261261
};
262262

263-
public constructor(reason: 'new' | 'changed' | 'removed', module: Module) {
263+
public constructor(reason: 'new' | 'changed' | 'removed', module: DebugProtocol.Module) {
264264
super('module');
265265
this.body = {
266266
reason: reason,
@@ -272,10 +272,10 @@ export class ModuleEvent extends Event implements DebugProtocol.ModuleEvent {
272272
export class LoadedSourceEvent extends Event implements DebugProtocol.LoadedSourceEvent {
273273
body: {
274274
reason: 'new' | 'changed' | 'removed',
275-
source: Source
275+
source: DebugProtocol.Source
276276
};
277277

278-
public constructor(reason: 'new' | 'changed' | 'removed', source: Source) {
278+
public constructor(reason: 'new' | 'changed' | 'removed', source: DebugProtocol.Source) {
279279
super('loadedSource');
280280
this.body = {
281281
reason: reason,

0 commit comments

Comments
 (0)