MCPcopy Index your code
hub / github.com/microsoft/SandDance / resourceUrl

Function resourceUrl

extensions/common-backend/src/html.ts:8–14  ·  view source on GitHub ↗
(resource: string)

Source from the content-addressed store, hash-verified

6export function getWebviewContent(webView: vscode.Webview, extensionPath: string, fileUriFsPath: string) {
7
8 function resourceUrl(resource: string) {
9 // Get path to resource on disk
10 const onDiskPath = vscode.Uri.file(path.join(extensionPath, 'resources', resource));
11
12 // And get the special URI to use with the webview
13 return webView.asWebviewUri(onDiskPath);
14 }
15
16 return `<!DOCTYPE html>
17<html lang="en">

Callers 1

getWebviewContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected