From 75496729124102517ebf3c7d5f9a090671b073b5 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 25 Jun 2021 10:48:07 -0400 Subject: [PATCH] Support `shouldLanguageServerExitOnShutdown` capability Supports the capability, which means that language server shuts down when `shutdown` is received instead of when `exit` is received. See eclipse/lemminx#1070 Signed-off-by: David Thompson --- CHANGELOG.md | 1 + src/client/xmlClient.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3578edef..46e52d8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ * CodeLens does not work in binary. See [eclipse/lemminx#1046](https://github.com/eclipse/lemminx/issues/1046). * Error while saving file to cache on Windows OS (PosixFileAttributeView not supported). See [eclipse/lemminx#734](https://github.com/eclipse/lemminx/issues/734). * Extension doesn't start when running in vscode < 1.55. See [#520](https://github.com/redhat-developer/vscode-xml/pull/520). + * Language server remains running after VS Code stops. See [#TODO](https://github.com/redhat-developer/vscode-xml/pull/TODO). ## [0.16.1](https://github.com/redhat-developer/vscode-xml/milestone/20?closed=1) (May 18, 2021) diff --git a/src/client/xmlClient.ts b/src/client/xmlClient.ts index 3db6fc67..e4779dd7 100644 --- a/src/client/xmlClient.ts +++ b/src/client/xmlClient.ts @@ -129,7 +129,8 @@ function getLanguageClientOptions(logfile: string, externalXmlSettings: External } }, actionableNotificationSupport: true, - openSettingsCommandSupport: true + openSettingsCommandSupport: true, + shouldLanguageServerExitOnShutdown: true } }, errorHandler: new ClientErrorHandler('XML'),