File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
test/omnisharp/omnisharpIntegrationTests Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -310,7 +310,10 @@ async function activate(
310
310
) ;
311
311
312
312
if ( omnisharpOptions . autoStart ) {
313
- await server . autoStart ( context . workspaceState . get < string > ( 'lastSolutionPathOrFolder' , '' ) ) ;
313
+ // We intentionally do not await this as we don't want to block activation on the server starting.
314
+ server . autoStart ( context . workspaceState . get < string > ( 'lastSolutionPathOrFolder' , '' ) ) . catch ( ( err ) => {
315
+ throw err ;
316
+ } ) ;
314
317
}
315
318
316
319
// stop server on deactivate
Original file line number Diff line number Diff line change @@ -57,8 +57,8 @@ export async function restartOmniSharpServer(): Promise<void> {
57
57
resolve ( ) ;
58
58
}
59
59
} ) ;
60
+ vscode . commands . executeCommand ( 'o.restart' ) ;
60
61
} ) ;
61
- await vscode . commands . executeCommand ( 'o.restart' ) ;
62
62
console . log ( 'OmniSharp restarted' ) ;
63
63
} catch ( err ) {
64
64
console . log ( JSON . stringify ( err ) ) ;
You can’t perform that action at this time.
0 commit comments