Skip to content

Commit 08a902b

Browse files
committed
vscode: remove settings modification hack
The vscode plugin now supports per-system configuration of the biome binary path. This means I can set it to the musl variant for linux-x64 and leave it as normal on others
1 parent fafadfc commit 08a902b

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
2-
"biome.lspBin": "./plugin/node_modules/@biomejs/biome/bin/biome",
2+
"biome.lsp.bin": {
3+
"linux-x64": "./plugin/node_modules/@biomejs/cli-linux-x64-musl/biome"
4+
},
35
"[typescript]": {
46
"editor.defaultFormatter": "biomejs.biome"
57
},

nix/flake.nix

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@
3535
marksman
3636
];
3737
enterShell = enterShellBySystem.${system} or "";
38-
39-
scripts.patch-vscode-settings.exec = ''
40-
# This script patches .vscode/settings.json to point to the musl variant of the biome binary.
41-
# This is intended for use on NixOS based systems, where the x64 version of the binary doesn't work.
42-
cat <<< $(jq '."biome.lspBin" = env.BIOME_BINARY' .vscode/settings.json) > .vscode/settings.json
43-
'';
4438
}];
4539
};
4640
});

0 commit comments

Comments
 (0)