Skip to content

Commit 7d0567f

Browse files
committed
don't send empty string configs to ZLS where null would be expected
See #229
1 parent 3b80abd commit 7d0567f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/zls.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ async function configurationMiddleware(
175175
const configValue = configuration.get(section);
176176
if (typeof configValue === "string" && configValue) {
177177
result[index] = handleConfigOption(configValue);
178+
} else {
179+
// Make sure that `""` gets converted to `null`
180+
result[index] = null;
178181
}
179182
}
180183

0 commit comments

Comments
 (0)