Skip to content

Commit

Permalink
Update context to contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
WyoTwT committed Apr 11, 2024
1 parent c472173 commit 1cc2bce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugin/adapter-registry/amalgamator-gdb-tracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -62,7 +62,7 @@ export class AmalgamatorGdbVariableTransformer extends AdapterVariableTracker {

async getContexts(session: vscode.DebugSession): Promise<Context[]> {
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);
Expand Down

0 comments on commit 1cc2bce

Please sign in to comment.