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(
310310 ) ;
311311
312312 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+ } ) ;
314317 }
315318
316319 // stop server on deactivate
Original file line number Diff line number Diff line change @@ -57,8 +57,8 @@ export async function restartOmniSharpServer(): Promise<void> {
5757 resolve ( ) ;
5858 }
5959 } ) ;
60+ vscode . commands . executeCommand ( 'o.restart' ) ;
6061 } ) ;
61- await vscode . commands . executeCommand ( 'o.restart' ) ;
6262 console . log ( 'OmniSharp restarted' ) ;
6363 } catch ( err ) {
6464 console . log ( JSON . stringify ( err ) ) ;
You can’t perform that action at this time.
0 commit comments