Skip to content

Commit 7179673

Browse files
committed
fix: update lsconfiguration when preferences has been updated
1 parent a3e2f1b commit 7179673

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • plugin/src/main/java/io/snyk/eclipse/plugin/views/snyktoolview/handlers

plugin/src/main/java/io/snyk/eclipse/plugin/views/snyktoolview/handlers/BaseHandler.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import org.eclipse.ui.menus.UIElement;
1313

1414
import io.snyk.eclipse.plugin.properties.preferences.Preferences;
15+
import io.snyk.languageserver.LsConfigurationUpdater;
1516

1617
public class BaseHandler extends AbstractHandler implements IElementUpdater {
1718

@@ -30,6 +31,9 @@ public Object execute(ExecutionEvent event) throws ExecutionException {
3031

3132
Preferences.getInstance().store(preferenceKey,
3233
Boolean.valueOf(!Preferences.getInstance().getBooleanPref(preferenceKey)).toString());
34+
35+
new LsConfigurationUpdater().configurationChanged();
36+
3337
return null;
3438
}
3539

0 commit comments

Comments
 (0)