From 27a4016530a293fe7213f992dadedf635274514d Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Tue, 12 Jan 2021 16:44:41 +0100 Subject: [PATCH] (feat) vscode: expose language server for experiments #725 --- packages/svelte-vscode/src/extension.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/svelte-vscode/src/extension.ts b/packages/svelte-vscode/src/extension.ts index 78a8b98f2..97e63dc12 100644 --- a/packages/svelte-vscode/src/extension.ts +++ b/packages/svelte-vscode/src/extension.ts @@ -219,6 +219,16 @@ export function activate(context: ExtensionContext) { } ] }); + + // This API is considered private and only exposed for experimenting. + // Interface may change at any time. Use at your own risk! + return { + /** + * As a function, because restarting the server + * will result in another instance. + */ + getLanguageServer: getLS + }; } function addRenameFileListener(getLS: () => LanguageClient) {