(title: string, cp: DisposableProcess | undefined, panel: vscode.WebviewPanel,
resourceViewColumn: vscode.ViewColumn, outputUri: vscode.Uri, filePath: string,
RMarkdownPreviewManager: RMarkdownPreviewManager, useCodeTheme: boolean, autoRefresh: boolean)
| 25 | isRendering: boolean; |
| 26 | |
| 27 | constructor(title: string, cp: DisposableProcess | undefined, panel: vscode.WebviewPanel, |
| 28 | resourceViewColumn: vscode.ViewColumn, outputUri: vscode.Uri, filePath: string, |
| 29 | RMarkdownPreviewManager: RMarkdownPreviewManager, useCodeTheme: boolean, autoRefresh: boolean) { |
| 30 | super(() => { |
| 31 | this.cp?.dispose(); |
| 32 | this.panel?.dispose(); |
| 33 | this.fileWatcher?.close(); |
| 34 | fs.removeSync(this.outputUri.fsPath); |
| 35 | }); |
| 36 | |
| 37 | this.title = title; |
| 38 | this.cp = cp; |
| 39 | this.panel = panel; |
| 40 | this.resourceViewColumn = resourceViewColumn; |
| 41 | this.outputUri = outputUri; |
| 42 | this.autoRefresh = autoRefresh; |
| 43 | this.mtime = fs.statSync(filePath).mtime.getTime(); |
| 44 | this.isRendering = false; |
| 45 | void this.refreshContent(useCodeTheme); |
| 46 | this.startFileWatcher(RMarkdownPreviewManager, filePath); |
| 47 | } |
| 48 | |
| 49 | public styleHtml(useCodeTheme: boolean) { |
| 50 | if (useCodeTheme) { |
nothing calls this directly
no test coverage detected