debug: Capabilities to debugProtocol.d.ts

This commit is contained in:
isidor
2016-01-22 17:09:41 +01:00
parent d607841812
commit e66dd6523d
2 changed files with 13 additions and 11 deletions
+11 -9
View File
@@ -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;
}
}
@@ -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<DebugProtocol.InitializeResponse> {
return this.send('initialize', args).then(response => {
this.capablities = response;
this.capablities = response.body;
return response;
});
}