Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/vscode-extension/src/devices/DeviceNameCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ async function getDeviceModels(refetchIfNotOnList?: string): Promise<DeviceModel
if (json) {
await writeCacheFile(json);
}
fetchModelsPromise = null;
// NOTE: even if `fetchModelsPromise` resolves to null, we don't want to reset it,
// in order to avoid attempting refetching the models list over and over.
// Instead, we rely on it only being called once per extension activation here,
// so the list can be re-fetched only after restart.
return json;
}

Expand Down
Loading