diff --git a/src/vs/workbench/parts/debug/common/debugProtocol.d.ts b/src/vs/workbench/parts/debug/common/debugProtocol.d.ts index bcae4698324..4eda6e4a1df 100644 --- a/src/vs/workbench/parts/debug/common/debugProtocol.d.ts +++ b/src/vs/workbench/parts/debug/common/debugProtocol.d.ts @@ -144,16 +144,9 @@ declare module DebugProtocol { /** Determines in what format paths are specified. Possible values are 'path' or 'uri'. The default is 'path', which is the native format. */ pathFormat?: string; } - /** Response to Initialize request. - * It contains information about the features implemented by a debug adapter. - */ + /** Response to Initialize request. */ export interface InitializeResponse extends Response { - body: { - /** The debug adapter supports the configurationDoneRequest. */ - supportsConfigurationDoneRequest?: boolean; - /** The debug adapter supports a (side effect free) evaluate request for data hovers. */ - supportEvaluateForHovers?: boolean; - } + body: Capabilites; } /** ConfigurationDone request; value of command field is "configurationDone". @@ -544,4 +537,13 @@ declare module DebugProtocol { /** The actual column of the breakpoint. */ column?: number; } + + /** Information about the features implemented by a debug adapter. + */ + export interface Capabilites { + /** The debug adapter supports the configurationDoneRequest. */ + supportsConfigurationDoneRequest?: boolean; + /** The debug adapter supports a (side effect free) evaluate request for data hovers. */ + supportEvaluateForHovers?: boolean; + } } diff --git a/src/vs/workbench/parts/debug/node/rawDebugSession.ts b/src/vs/workbench/parts/debug/node/rawDebugSession.ts index a75e666def7..789ba0b15b0 100644 --- a/src/vs/workbench/parts/debug/node/rawDebugSession.ts +++ b/src/vs/workbench/parts/debug/node/rawDebugSession.ts @@ -25,7 +25,7 @@ export class RawDebugSession extends v8.V8Protocol implements debug.IRawDebugSes private startTime: number; private stopServerPending: boolean; public isAttach: boolean; - public capablities: DebugProtocol.InitializeResponse; + public capablities: DebugProtocol.Capabilites; constructor( private messageService: IMessageService, @@ -67,7 +67,7 @@ export class RawDebugSession extends v8.V8Protocol implements debug.IRawDebugSes public initialize(args: DebugProtocol.InitializeRequestArguments): TPromise { return this.send('initialize', args).then(response => { - this.capablities = response; + this.capablities = response.body; return response; }); }