()
| 134 | |
| 135 | function 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 |