mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
clear positions cache on hotswap
This commit is contained in:
@@ -54,6 +54,10 @@ public class CompoundPositionManager extends PositionManagerEx implements MultiR
|
||||
public void appendPositionManager(PositionManager manager) {
|
||||
myPositionManagers.remove(manager);
|
||||
myPositionManagers.add(0, manager);
|
||||
clearCache();
|
||||
}
|
||||
|
||||
public void clearCache() {
|
||||
mySourcePositionCache.clear();
|
||||
}
|
||||
|
||||
|
||||
@@ -168,6 +168,8 @@ class ReloadClassesWorker {
|
||||
processException(e);
|
||||
}
|
||||
|
||||
debugProcess.getPositionManager().clearCache();
|
||||
|
||||
DebuggerContextImpl context = myDebuggerSession.getContextManager().getContext();
|
||||
SuspendContextImpl suspendContext = context.getSuspendContext();
|
||||
if (suspendContext != null) {
|
||||
|
||||
Reference in New Issue
Block a user