MCPcopy Create free account
hub / github.com/Marus/cortex-debug / setRefreshRate

Method setRefreshRate

src/frontend/views/live-watch.ts:422–428  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

420 private static minRefreshRate = 200; // Seems to be the magic number
421 private static maxRefreshRate = 5000;
422 private setRefreshRate() {
423 const config = vscode.workspace.getConfiguration('cortex-debug', null);
424 let rate = config.get('liveWatchRefreshRate', LiveWatchTreeProvider.defaultRefreshRate);
425 rate = Math.max(rate, LiveWatchTreeProvider.minRefreshRate);
426 rate = Math.min(rate, LiveWatchTreeProvider.maxRefreshRate);
427 this.currentRefreshRate = rate;
428 }
429
430 public saveState() {
431 const state = this.context.workspaceState;

Callers 2

constructorMethod · 0.95
settingsChangedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected