Skip to content

Commit 8c3a00c

Browse files
committed
fix: changedConfig
After enabling the d.enableAutoComplete configuration, dcd-server did not start.
1 parent 1c7a267 commit 8c3a00c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/served/extension.d

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void changedConfig(ConfigWorkspace target, string[] paths, served.types.Configur
6161
StopWatch sw;
6262
sw.start();
6363

64-
trace("Config for ", target, " changed: ", config);
64+
trace("Config for ", target, " changed: ", config, ", paths:", paths);
6565

6666
reportProgress(ProgressType.configLoad, target.index, target.numWorkspaces, target.uri);
6767

@@ -155,7 +155,7 @@ void changedConfig(ConfigWorkspace target, string[] paths, served.types.Configur
155155
case "d.enableAutoComplete":
156156
if (config.d.enableAutoComplete)
157157
{
158-
if (!backend.has!DCDComponent(workspaceFs))
158+
if (backend.has!DCDComponent(workspaceFs))
159159
{
160160
auto instance = backend.getInstance(workspaceFs);
161161
lazyStartDCDServer(instance, target.uri);

0 commit comments

Comments
 (0)