We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 542d1b3 commit b592189Copy full SHA for b592189
src/zls.ts
@@ -173,11 +173,9 @@ async function configurationMiddleware(
173
const index = optionIndices[name] as unknown as number;
174
const section = name.slice("zig.zls.".length);
175
const configValue = configuration.get(section);
176
- if (typeof configValue === "string" && configValue) {
177
- result[index] = handleConfigOption(configValue);
178
- } else {
179
- // Make sure that `""` gets converted to `null`
180
- result[index] = null;
+ if (typeof configValue === "string") {
+ // Make sure that `""` gets converted to `null` and resolve predefined values
+ result[index] = configValue ? handleConfigOption(configValue) : null;
181
}
182
183
0 commit comments