From 5addc5c78a24930f61d598858e1e685461686886 Mon Sep 17 00:00:00 2001 From: andrewL-avlq <38555688+andrewL-avlq@users.noreply.github.com> Date: Tue, 8 Oct 2024 06:07:19 +0100 Subject: [PATCH] fix: Allow derived MockLanguageServer for derived servers. (#1133) By changing the visibility of the MockLanguageServer constructor from private to protected. --- org.eclipse.lsp4e.tests.mock/META-INF/MANIFEST.MF | 2 +- .../src/org/eclipse/lsp4e/tests/mock/MockLanguageServer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.eclipse.lsp4e.tests.mock/META-INF/MANIFEST.MF b/org.eclipse.lsp4e.tests.mock/META-INF/MANIFEST.MF index e5a48f9e7..a1d7f4f83 100644 --- a/org.eclipse.lsp4e.tests.mock/META-INF/MANIFEST.MF +++ b/org.eclipse.lsp4e.tests.mock/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: Mock Language Server to test LSP4E Bundle-SymbolicName: org.eclipse.lsp4e.tests.mock -Bundle-Version: 0.16.12.qualifier +Bundle-Version: 0.16.13.qualifier Bundle-Vendor: Eclipse LSP4E Bundle-RequiredExecutionEnvironment: JavaSE-17 Require-Bundle: org.eclipse.lsp4j;bundle-version="[0.23.0,0.24.0)", diff --git a/org.eclipse.lsp4e.tests.mock/src/org/eclipse/lsp4e/tests/mock/MockLanguageServer.java b/org.eclipse.lsp4e.tests.mock/src/org/eclipse/lsp4e/tests/mock/MockLanguageServer.java index ff4f4bd8c..c17503c1f 100644 --- a/org.eclipse.lsp4e.tests.mock/src/org/eclipse/lsp4e/tests/mock/MockLanguageServer.java +++ b/org.eclipse.lsp4e.tests.mock/src/org/eclipse/lsp4e/tests/mock/MockLanguageServer.java @@ -106,7 +106,7 @@ public static void reset(final Supplier serverConfigurer) { INSTANCE = new MockLanguageServer(serverConfigurer); } - private MockLanguageServer(final Supplier serverConfigurer) { + protected MockLanguageServer(final Supplier serverConfigurer) { resetInitializeResult(serverConfigurer); }