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

Method getFilePath

src/rmarkdown/preview.ts:167–174  ·  view source on GitHub ↗
(preview: RMarkdownPreview)

Source from the content-addressed store, hash-verified

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

Callers 1

updatePreviewMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected