[debugger hotswap] Move hot swap API to xdebugger-api module

GitOrigin-RevId: 0810bc5dffd14226fb497608fba4c2170a37f3fe
This commit is contained in:
Maksim Zuev
2025-06-06 14:44:54 +02:00
committed by intellij-monorepo-bot
parent 5076fa5c1a
commit 06347fdf39
12 changed files with 132 additions and 63 deletions

View File

@@ -5,10 +5,10 @@ import com.intellij.debugger.engine.JavaDebugProcess
import com.intellij.debugger.impl.DebuggerSession
import com.intellij.debugger.ui.HotSwapStatusListener
import com.intellij.xdebugger.XDebugProcess
import com.intellij.xdebugger.hotswap.HotSwapInDebugSessionEnabler
import com.intellij.xdebugger.hotswap.HotSwapProvider
import com.intellij.xdebugger.hotswap.HotSwapResultListener
import com.intellij.xdebugger.impl.hotswap.HotSwapDebugSessionManager
import com.intellij.xdebugger.impl.hotswap.HotSwapInDebugSessionEnabler
import com.intellij.xdebugger.impl.hotswap.HotSwapProvider
import com.intellij.xdebugger.impl.hotswap.HotSwapResultListener
private class JvmHotSwapInDebugSessionEnabler : HotSwapInDebugSessionEnabler {
override fun createProvider(process: XDebugProcess): HotSwapProvider<*>? {

View File

@@ -9,7 +9,12 @@ import com.intellij.openapi.application.readAction
import com.intellij.openapi.project.Project
import com.intellij.openapi.roots.ProjectFileIndex
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.xdebugger.impl.hotswap.*
import com.intellij.xdebugger.hotswap.HotSwapProvider
import com.intellij.xdebugger.hotswap.HotSwapSession
import com.intellij.xdebugger.hotswap.SourceFileChangesCollector
import com.intellij.xdebugger.hotswap.SourceFileChangesListener
import com.intellij.xdebugger.impl.hotswap.SourceFileChangeFilter
import com.intellij.xdebugger.impl.hotswap.SourceFileChangesCollectorImpl
import kotlinx.coroutines.CoroutineScope
internal class JvmHotSwapProvider(private val debuggerSession: DebuggerSession) : HotSwapProvider<VirtualFile> {