Skip to content

Commit

Permalink
don't send "" to ZLS where null would be expected
Browse files Browse the repository at this point in the history
See #229
  • Loading branch information
Techatrix committed Dec 9, 2024
1 parent 3b80abd commit 5a306b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/zls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ async function configurationMiddleware(
const configValue = configuration.get(section);
if (typeof configValue === "string" && configValue) {
result[index] = handleConfigOption(configValue);
} else {
// Make sure that `""` gets converted to `null`
result[index] = null;
}
}

Expand Down

0 comments on commit 5a306b4

Please sign in to comment.