diff --git a/.gitignore b/.gitignore index 6e24fde5..51484850 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,7 @@ build/ *.tsbuildinfo .history/ dag-packed.js +dag-packed.js.map # env .env diff --git a/src/common/server.ts b/src/common/server.ts index e0e0dfe8..b2862f8f 100644 --- a/src/common/server.ts +++ b/src/common/server.ts @@ -111,7 +111,11 @@ export async function restartServer( const lsClient = lsClientInstance.getLanguageClient(); if (lsClient) { traceInfo(`Server: Stop requested`); - await lsClient.stop(); + try { + await lsClient.stop(); + } catch (e) { + traceInfo(`Server: Stop failed - ${e}`, '\nContinuing to attempt to start'); + } _disposables.forEach(d => d.dispose()); _disposables = []; }