Skip to content

Commit

Permalink
fix: changedConfig
Browse files Browse the repository at this point in the history
After enabling the d.enableAutoComplete configuration,
dcd-server did not start.
  • Loading branch information
electricface authored and WebFreak001 committed Apr 26, 2024
1 parent 1c7a267 commit 84afcfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/served/extension.d
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 84afcfc

Please sign in to comment.