Kotlin LS: remove unused _java_home field from DependencyProvider

This commit is contained in:
Michael Panchenko committed 2026-03-23 18:17:15 +01:00
1 parent b898677b1c
commit 091b2245e3
1 file changed
-4
@@ -85,7 +85,6 @@ class KotlinLanguageServer(SolidLanguageServer):
class DependencyProvider(LanguageServerDependencyProviderSinglePath):
def __init__(self, custom_settings: SolidLSPSettings.CustomLSSettings, ls_resources_dir: str):
super().__init__(custom_settings, ls_resources_dir)
self._java_home_path: str | None = None
def _get_or_install_core_dependency(self) -> str:
"""
@@ -134,9 +133,6 @@ class KotlinLanguageServer(SolidLanguageServer):
"""Provides JAVA_HOME and JVM options for the Kotlin Language Server process."""
env: dict[str, str] = {}
if self._java_home_path is not None:
env["JAVA_HOME"] = self._java_home_path
# Get JVM options from settings or use default
# Note: an explicit empty string means "no JVM options", which is distinct from not setting the key
_sentinel = object()