Skip to content

Commit

Permalink
Merge pull request #53 from colin-grant-work/bugfix/bad-fetch-on-start
Browse files Browse the repository at this point in the history
Don't fetch variables if nothing to fetch
  • Loading branch information
thegecko authored Jan 2, 2024
2 parents edabe69 + 1fc11ba commit f611578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webview/variables/variable-decorations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class VariableDecorator implements ColumnContribution, Decorator {
get onDidChange(): IEvent<Decoration[]> { return this.onDidChangeEmitter.event; }

async fetchData(currentViewParameters: DebugProtocol.ReadMemoryArguments): Promise<void> {
if (!this.active) { return; }
if (!this.active || !currentViewParameters.memoryReference || !currentViewParameters.count) { return; }
const visibleVariables = (await messenger.sendRequest(getVariables, HOST_EXTENSION, currentViewParameters))
.map<BigIntVariableRange>(transmissible => {
const startAddress = BigInt(transmissible.startAddress);
Expand Down

0 comments on commit f611578

Please sign in to comment.