()
| 41 | const channel = new Channel(workspaceState) |
| 42 | |
| 43 | const start = async () => { |
| 44 | if (webview && webview.state.loaded) { |
| 45 | webview.createOrShow() |
| 46 | } else { |
| 47 | // activate machine |
| 48 | webview = await createWebView({ |
| 49 | extensionPath, |
| 50 | channel, |
| 51 | }) |
| 52 | // make send to client function exportable |
| 53 | // as "send". |
| 54 | sendToClient = webview.send |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | // run activation if triggered by "workspaceContains" |
| 59 | start() |
no test coverage detected