Skip to content

Commit 1cc2bce

Browse files
committed
Update context to contexts
1 parent c472173 commit 1cc2bce

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/plugin/adapter-registry/amalgamator-gdb-tracker.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ import { AdapterCapabilities, AdapterVariableTracker, VariableTracker } from './
2626
export interface Contexts {
2727
children?: Context[];
2828
}
29-
export interface GetContextResponse extends DebugProtocol.Response {
29+
export interface GetContextsResponse extends DebugProtocol.Response {
3030
body: Contexts;
3131
}
32-
export type GetContextResult = GetContextResponse['body'];
32+
export type GetContextsResult = GetContextsResponse['body'];
3333

3434
export interface AmalgamatorReadArgs extends ReadMemoryArguments {
3535
child: Context;
@@ -62,7 +62,7 @@ export class AmalgamatorGdbVariableTransformer extends AdapterVariableTracker {
6262

6363
async getContexts(session: vscode.DebugSession): Promise<Context[]> {
6464
if (!this.contexts) {
65-
const contexts: GetContextResult = (await session.customRequest('cdt-amalgamator/getChildDaps'));
65+
const contexts: GetContextsResult = (await session.customRequest('cdt-amalgamator/getChildDaps'));
6666
this.contexts = contexts.children?.map(({ name, id }) => ({ name, id })) ?? [];
6767
}
6868
return Promise.resolve(this.contexts);

0 commit comments

Comments
 (0)