Remove live hover optimisation

Does not work when stopping running apps and having multiple editors
open.
This commit is contained in:
nsingh
2018-05-10 09:59:27 -07:00
parent f56c0fe59b
commit a640a62121
2 changed files with 2 additions and 12 deletions

View File

@@ -49,7 +49,6 @@ public class SpringLiveHoverWatchdog {
private RunningAppProvider runningAppProvider;
private boolean highlightsEnabled = true;
private boolean hadPreviousRunningBootApps = false;
private Timer timer;
@@ -157,17 +156,9 @@ public class SpringLiveHoverWatchdog {
publishLiveHints(docURI, ranges);
}
}
else if (this.hadPreviousRunningBootApps) {
// PT 156688501:
// Only clean up live hovers if there were running boot apps in the previous
// update, but not
// in the current one.
// This is to avoid unnecessary publishing of live hovers when there have been
// no running apps
// at all between consecutive updates.
else {
cleanupLiveHints(docURI);
}
this.hadPreviousRunningBootApps = hasCurrentRunningBootApps;
} catch (Exception e) {
logger.error("", e);
}