Skip to content

Commit 2cb1d94

Browse files
authored
fix: issue warning on missing nil/nixd (#465)
1 parent b8c6cc4 commit 2cb1d94

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/client.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@ export async function activate(context: ExtensionContext): Promise<void> {
117117
if (!item?.section) {
118118
continue;
119119
}
120-
res.push(settings[item.section as keyof typeof settings] ?? null);
120+
const sectionSettings = settings[item.section as keyof typeof settings]
121+
if (!sectionSettings) {
122+
client.warn(`failed to find "${item.section}" in "nix.serverSettings"`)
123+
}
124+
res.push(sectionSettings ?? null);
121125
}
122126
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
123127
return res;

0 commit comments

Comments
 (0)