File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -370,17 +370,11 @@ async function serverManager(): Promise<any> {
370370 }
371371}
372372
373- async function languageServer ( ) : Promise < any > {
373+ function languageServer ( ) : vscode . Extension < any > {
374374 const extId = "intersystems.language-server" ;
375375 const extension = vscode . extensions . getExtension ( extId ) ;
376376
377377 return extension ;
378- // if (extension) {
379- // if (!extension.isActive) {
380- // // await extension.activate();
381- // }
382- // return extension.exports;
383- // }
384378}
385379
386380export async function activate ( context : vscode . ExtensionContext ) : Promise < any > {
@@ -540,8 +534,11 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
540534 outputChannel . show ( true ) ;
541535 }
542536
543- const languageServerExt = await languageServer ( ) ;
537+ const languageServerExt = languageServer ( ) ;
544538 if ( ! languageServerExt ) {
539+ outputChannel . appendLine ( `The language-server extension was not found.\n` ) ;
540+ outputChannel . show ( true ) ;
541+
545542 if ( vscode . window . activeTextEditor ) {
546543 diagnosticProvider . updateDiagnostics ( vscode . window . activeTextEditor . document ) ;
547544 }
You can’t perform that action at this time.
0 commit comments