MCPcopy Create free account
hub / github.com/REditorSupport/vscode-R / styleHtml

Method styleHtml

src/rmarkdown/preview.ts:49–55  ·  view source on GitHub ↗
(useCodeTheme: boolean)

Source from the content-addressed store, hash-verified

47 }
48
49 public styleHtml(useCodeTheme: boolean) {
50 if (useCodeTheme) {
51 this.panel.webview.html = this.htmlDarkContent ?? '';
52 } else {
53 this.panel.webview.html = this.htmlLightContent ?? '';
54 }
55 }
56
57 public async refreshContent(useCodeTheme: boolean) {
58 this.getHtmlContent(await readContent(this.outputUri.fsPath, 'utf8') ?? '');

Callers 2

refreshContentMethod · 0.95
toggleThemeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected