(preview: RMarkdownPreview)
| 165 | } |
| 166 | |
| 167 | public getFilePath(preview: RMarkdownPreview): string | undefined { |
| 168 | for (const _preview of this.store) { |
| 169 | if (_preview[1] === preview) { |
| 170 | return _preview[0]; |
| 171 | } |
| 172 | } |
| 173 | return undefined; |
| 174 | } |
| 175 | |
| 176 | public has(filePath: string): boolean { |
| 177 | return this.store.has(filePath); |