Avoid refreshing highlights/codelenses when...
...nothing has changed. The refresh can be very expensive if user has enabled code minings. See: https://github.com/spring-projects/sts4/issues/292
This commit is contained in:
@@ -115,7 +115,7 @@ public class SpringLiveHoverWatchdog {
|
||||
|
||||
private synchronized void start() {
|
||||
if (highlightsEnabled && timer == null) {
|
||||
logger.debug("Starting SpringLiveHoverWatchdog");
|
||||
logger.info("Starting SpringLiveHoverWatchdog");
|
||||
this.timer = new ScheduledThreadPoolExecutor(1);
|
||||
this.timer.scheduleWithFixedDelay(() -> this.update(), 0, POLLING_INTERVAL_MILLISECONDS, TimeUnit.MILLISECONDS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user