Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexu authored Feb 22, 2025
2 parents 5119d5d + 5e73acb commit 6a331d6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- run: npm run build
- run: npm run typecheck
- run: npm run lint
- run: npm run format -- --check
- run: npm run format:check

- name: package extension
run: |
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@
"test": "npm run compile && node ./node_modules/vscode/bin/test",
"typecheck": "tsc --noEmit",
"format": "prettier --write .",
"format:check": "prettier --check .",
"lint": "eslint ."
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/zigMainCodeLens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function zigRun() {

function escapePath(rawPath: string): string {
if (/[ !"#$&'()*,;:<>?\[\\\]^`{|}]/.test(rawPath)) {
return `"${rawPath.replaceAll("\"", "\"\\\"\"")}"`;
return `"${rawPath.replaceAll('"', '"\\""')}"`;
}
return rawPath;
}
Expand Down
5 changes: 5 additions & 0 deletions src/zls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ async function configurationMiddleware(
inspect?.workspaceValue === undefined &&
inspect?.workspaceFolderValue === undefined;
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 6a331d6

Please sign in to comment.