Skip to content

Commit

Permalink
fix zig.zls.semanticTokens not being overridden
Browse files Browse the repository at this point in the history
  • Loading branch information
Techatrix authored and Vexu committed Feb 22, 2025
1 parent 4ac964b commit 8372c38
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/zls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,12 @@ async function configurationMiddleware(
inspect?.globalValue === undefined &&
inspect?.workspaceValue === undefined &&
inspect?.workspaceFolderValue === undefined;
if(isDefaultValue) {
if (isDefaultValue) {
if (name === "zig.zls.semanticTokens") {
// The extension has a different default value for this config
// option compared to ZLS
continue;
}
result[index] = null;
}
}
Expand Down

0 comments on commit 8372c38

Please sign in to comment.