MCPcopy Create free account
hub / github.com/coderoad/coderoad-vscode / createUri

Function createUri

src/services/webview/render.ts:37–42  ·  view source on GitHub ↗
(_filePath: string)

Source from the content-addressed store, hash-verified

35async function render(panel: vscode.WebviewPanel, rootPath: string): Promise<void> {
36 // generate vscode-resource build path uri
37 const createUri = (_filePath: string): any => {
38 const filePath = (_filePath.startsWith('vscode') ? _filePath.substr(16) : _filePath).replace('///', '\\')
39
40 // @ts-ignore
41 return panel.webview.asWebviewUri(vscode.Uri.file(path.join(rootPath, filePath)))
42 }
43
44 try {
45 // load copied index.html from web app build

Callers 1

renderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected