mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-17 13:50:46 +01:00
debug: Capabilities to debugProtocol.d.ts
This commit is contained in:
+11
-9
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user