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

Method constructor

src/rmarkdown/preview.ts:144–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142 private store: Map<string, RMarkdownPreview> = new Map<string, RMarkdownPreview>();
143
144 constructor() {
145 super((): void => {
146 for (const preview of this.store) {
147 preview[1].dispose();
148 }
149 this.store.clear();
150 });
151 }
152
153 public add(filePath: string, preview: RMarkdownPreview): Map<string, RMarkdownPreview> {
154 return this.store.set(filePath, preview);

Callers

nothing calls this directly

Calls 1

disposeMethod · 0.65

Tested by

no test coverage detected