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

Method constructor

src/rmarkdown/preview.ts:27–47  ·  view source on GitHub ↗
(title: string, cp: DisposableProcess | undefined, panel: vscode.WebviewPanel,
        resourceViewColumn: vscode.ViewColumn, outputUri: vscode.Uri, filePath: string,
        RMarkdownPreviewManager: RMarkdownPreviewManager, useCodeTheme: boolean, autoRefresh: boolean)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 3

refreshContentMethod · 0.95
startFileWatcherMethod · 0.95
disposeMethod · 0.65

Tested by

no test coverage detected