MCPcopy Index your code
hub / github.com/REditorSupport/vscode-R / enableAutoRefresh

Method enableAutoRefresh

src/rmarkdown/preview.ts:239–246  ·  view source on GitHub ↗
(preview?: RMarkdownPreview)

Source from the content-addressed store, hash-verified

237 }
238
239 public enableAutoRefresh(preview?: RMarkdownPreview): void {
240 if (preview) {
241 preview.autoRefresh = true;
242 } else if (this.activePreview?.preview) {
243 this.activePreview.preview.autoRefresh = true;
244 void setContext('r.rmarkdown.preview.autoRefresh', true);
245 }
246 }
247
248 public disableAutoRefresh(preview?: RMarkdownPreview): void {
249 if (preview) {

Callers 1

activateFunction · 0.80

Calls 1

setContextFunction · 0.90

Tested by

no test coverage detected