@@ -24,13 +24,13 @@ import { Logger } from '../logger';
2424/** Represents capabilities that may be achieved with particular debug adapters but are not part of the DAP */
2525export interface AdapterCapabilities {
2626 /** Resolve variables known to the adapter to their locations. Fallback if {@link getResidents} is not present */
27- getVariables ?( session : vscode . DebugSession ) : Promise < VariableRange [ ] > ;
27+ getVariables ?( session : vscode . DebugSession , context ?: Context ) : Promise < VariableRange [ ] > ;
2828 /** Resolve symbols resident in the memory at the specified range. Will be preferred to {@link getVariables} if present. */
29- getResidents ?( session : vscode . DebugSession , params : DebugProtocol . ReadMemoryArguments ) : Promise < VariableRange [ ] > ;
29+ getResidents ?( session : vscode . DebugSession , params : DebugProtocol . ReadMemoryArguments , context ?: Context ) : Promise < VariableRange [ ] > ;
3030 /** Resolves the address of a given variable in bytes withthe current context. */
31- getAddressOfVariable ?( session : vscode . DebugSession , variableName : string ) : Promise < string | undefined > ;
31+ getAddressOfVariable ?( session : vscode . DebugSession , variableName : string , context ?: Context ) : Promise < string | undefined > ;
3232 /** Resolves the size of a given variable in bytes within the current context. */
33- getSizeOfVariable ?( session : vscode . DebugSession , variableName : string ) : Promise < bigint | undefined > ;
33+ getSizeOfVariable ?( session : vscode . DebugSession , variableName : string , context ?: Context ) : Promise < bigint | undefined > ;
3434 initializeAdapterTracker ?( session : vscode . DebugSession ) : vscode . DebugAdapterTracker | undefined ;
3535 getContexts ?( session : vscode . DebugSession ) : Promise < Context [ ] > ;
3636 readMemory ?( session : vscode . DebugSession , params : ReadMemoryArguments , context ?: Context ) : Promise < ReadMemoryResult > ;
0 commit comments