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

Function p

extensions/azdata-sanddance/src/extension.ts:136–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134
135function viewFileUriInSandDance(fileUri: vscode.Uri, context: vscode.ExtensionContext, uriTabName?: string | undefined): void {
136 const p = () => new Promise<string>(resolve => {
137 vscode.workspace.fs.readFile(fileUri).then(uint8array => {
138 resolve(new TextDecoder().decode(uint8array));
139 });
140 });
141 viewInSandDance(p, fileUri.fsPath, path.extname(fileUri.fsPath).substring(1), context, uriTabName);
142}
143

Callers

nothing calls this directly

Calls 2

resolveFunction · 0.50
readFileMethod · 0.45

Tested by

no test coverage detected