(context: vscode.ExtensionContext, fiddleId?: string, workspaceUri?: vscode.Uri)
| 121 | } |
| 122 | |
| 123 | async function tryOpenFiddle(context: vscode.ExtensionContext, fiddleId?: string, workspaceUri?: vscode.Uri): Promise<void> { |
| 124 | try { |
| 125 | await openFiddle(context, fiddleId, workspaceUri); |
| 126 | } catch (ex) { |
| 127 | vscode.window.showErrorMessage(ex); |
| 128 | console.log(ex); |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | async function openFiddle(context: vscode.ExtensionContext, fiddleId?: string, workspaceUri?: vscode.Uri) { |
| 133 | if (workspaceUri && fiddleSourceControlRegister.has(workspaceUri)) { |
no test coverage detected