(preview?: RMarkdownPreview)
| 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) { |
no test coverage detected