File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -105,16 +105,14 @@ export async function activate(_context: ExtensionContext) {
105105
106106 outputChannel . appendLine ( "Pony language server client starting…" ) ;
107107 // Start the client. This will also launch the server
108- return client
109- . start ( )
110- . then ( ( ) => {
111- outputChannel . appendLine ( "Pony language server client ready" ) ;
112- } )
113- . catch ( ( reason ) => {
114- window . showWarningMessage ( `Pony language server client failed: ${ reason } ` ) ;
115- showPony ( false ) ;
116- client = undefined ;
117- } ) ;
108+ try {
109+ await client . start ( ) ;
110+ outputChannel . appendLine ( "Pony language server client ready" ) ;
111+ } catch ( reason ) {
112+ window . showWarningMessage ( `Pony language server client failed: ${ reason } ` ) ;
113+ showPony ( false ) ;
114+ client = undefined ;
115+ }
118116}
119117
120118export async function deactivate ( ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments