()
| 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); |