Skip to content

Commit bafa3bf

Browse files
committed
perf: start workprocess asynchronously
1 parent 003bdfb commit bafa3bf

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/extension.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,13 @@ class WdioExtension implements vscode.Disposable {
2929
await configManager.initialize()
3030
const configPaths = configManager.getWdioConfigPaths()
3131

32-
// Start worker process
33-
try {
34-
await serverManager.start(configPaths)
35-
} catch (error) {
32+
// Start worker process asynchronously
33+
serverManager.start(configPaths).catch((error) => {
3634
const errorMessage = `Failed to start worker process: ${error instanceof Error ? error.message : String(error)}`
3735
log.error(errorMessage)
3836
vscode.window.showErrorMessage('Failed to start WebdriverIO worker process')
3937
return
40-
}
38+
})
4139

4240
// Create file watchers
4341
const testfileWatcher = new TestfileWatcher()

0 commit comments

Comments
 (0)