From a95384ca5e3f6d0fb1ebb153a28d9d04e497ab62 Mon Sep 17 00:00:00 2001 From: Martin Lippert Date: Tue, 9 Jan 2018 10:32:23 +0100 Subject: [PATCH] changed polling mechanics for liv hovers to reduce polling pressure in case something is slow in responding --- .../ide/vscode/boot/java/utils/SpringLiveHoverWatchdog.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/headless-services/boot-java-language-server/src/main/java/org/springframework/ide/vscode/boot/java/utils/SpringLiveHoverWatchdog.java b/headless-services/boot-java-language-server/src/main/java/org/springframework/ide/vscode/boot/java/utils/SpringLiveHoverWatchdog.java index 93bc37747..c3adb2696 100644 --- a/headless-services/boot-java-language-server/src/main/java/org/springframework/ide/vscode/boot/java/utils/SpringLiveHoverWatchdog.java +++ b/headless-services/boot-java-language-server/src/main/java/org/springframework/ide/vscode/boot/java/utils/SpringLiveHoverWatchdog.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2017 Pivotal, Inc. + * Copyright (c) 2017, 2018 Pivotal, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -109,7 +109,7 @@ public class SpringLiveHoverWatchdog { } }; - timer.scheduleAtFixedRate(task, 0, POLLING_INTERVAL_MILLISECONDS); + timer.schedule(task, 0, POLLING_INTERVAL_MILLISECONDS); } }