From 1cc2bce87aa45611fc31ece525351dbdd09c17d1 Mon Sep 17 00:00:00 2001 From: eahotht Date: Thu, 11 Apr 2024 20:59:56 +0200 Subject: [PATCH] Update context to contexts --- src/plugin/adapter-registry/amalgamator-gdb-tracker.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);