From 8c3a00cde442d8893fef44f0c145d44bf3953686 Mon Sep 17 00:00:00 2001 From: electricface Date: Wed, 24 Apr 2024 15:57:26 +0800 Subject: [PATCH] fix: changedConfig After enabling the d.enableAutoComplete configuration, dcd-server did not start. --- source/served/extension.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/served/extension.d b/source/served/extension.d index f4c5e6e..715128e 100644 --- a/source/served/extension.d +++ b/source/served/extension.d @@ -61,7 +61,7 @@ void changedConfig(ConfigWorkspace target, string[] paths, served.types.Configur StopWatch sw; sw.start(); - trace("Config for ", target, " changed: ", config); + trace("Config for ", target, " changed: ", config, ", paths:", paths); reportProgress(ProgressType.configLoad, target.index, target.numWorkspaces, target.uri); @@ -155,7 +155,7 @@ void changedConfig(ConfigWorkspace target, string[] paths, served.types.Configur case "d.enableAutoComplete": if (config.d.enableAutoComplete) { - if (!backend.has!DCDComponent(workspaceFs)) + if (backend.has!DCDComponent(workspaceFs)) { auto instance = backend.getInstance(workspaceFs); lazyStartDCDServer(instance, target.uri);