diff --git a/src/plugin/adapter-registry/amalgamator-gdb-tracker.ts b/src/plugin/adapter-registry/amalgamator-gdb-tracker.ts index 65dbdef..f5e618c 100644 --- a/src/plugin/adapter-registry/amalgamator-gdb-tracker.ts +++ b/src/plugin/adapter-registry/amalgamator-gdb-tracker.ts @@ -26,10 +26,10 @@ import { AdapterCapabilities, AdapterVariableTracker, VariableTracker } from './ export interface Contexts { children?: Context[]; } -export interface GetContextResponse extends DebugProtocol.Response { +export interface GetContextsResponse extends DebugProtocol.Response { body: Contexts; } -export type GetContextResult = GetContextResponse['body']; +export type GetContextsResult = GetContextsResponse['body']; export interface AmalgamatorReadArgs extends ReadMemoryArguments { child: Context; @@ -62,7 +62,7 @@ export class AmalgamatorGdbVariableTransformer extends AdapterVariableTracker { async getContexts(session: vscode.DebugSession): Promise { if (!this.contexts) { - const contexts: GetContextResult = (await session.customRequest('cdt-amalgamator/getChildDaps')); + const contexts: GetContextsResult = (await session.customRequest('cdt-amalgamator/getChildDaps')); this.contexts = contexts.children?.map(({ name, id }) => ({ name, id })) ?? []; } return Promise.resolve(this.contexts);