diff --git a/src/main/kotlin/com/github/biomejs/intellijbiome/services/BiomeServerService.kt b/src/main/kotlin/com/github/biomejs/intellijbiome/services/BiomeServerService.kt index 659e1f0..65dabac 100644 --- a/src/main/kotlin/com/github/biomejs/intellijbiome/services/BiomeServerService.kt +++ b/src/main/kotlin/com/github/biomejs/intellijbiome/services/BiomeServerService.kt @@ -2,14 +2,12 @@ package com.github.biomejs.intellijbiome.services import com.github.biomejs.intellijbiome.BiomeBundle import com.github.biomejs.intellijbiome.listeners.BiomeEditorPanelListener -import com.github.biomejs.intellijbiome.lsp.BiomeLspServerManagerListener import com.github.biomejs.intellijbiome.lsp.BiomeLspServerSupportProvider import com.intellij.notification.NotificationGroupManager import com.intellij.notification.NotificationType import com.intellij.openapi.components.Service import com.intellij.openapi.fileEditor.FileEditorManagerListener import com.intellij.openapi.project.Project -import com.intellij.openapi.util.Disposer import com.intellij.platform.lsp.api.LspServerManager @Service(Service.Level.PROJECT) @@ -17,7 +15,6 @@ class BiomeServerService(private val project: Project) { private val editorPanelListener: BiomeEditorPanelListener init { - addBiomeLspListener() editorPanelListener = BiomeEditorPanelListener(project) project.messageBus.connect().subscribe(FileEditorManagerListener.FILE_EDITOR_MANAGER, editorPanelListener) } @@ -30,11 +27,6 @@ class BiomeServerService(private val project: Project) { LspServerManager.getInstance(project).stopAndRestartIfNeeded(BiomeLspServerSupportProvider::class.java) } - fun addBiomeLspListener() { - LspServerManager.getInstance(project) - .addLspServerManagerListener(BiomeLspServerManagerListener(project), Disposer.newDisposable(), true) - } - fun stopBiomeServer() { LspServerManager.getInstance(project).stopServers(BiomeLspServerSupportProvider::class.java) }