vscode-extensions.rust-lang.rust-analyzer: 0.3.1850 -> 0.3.2029

I have removed the no-longer-necessary `echo y` in
the script, along with the TODO.

The other change is to `jq` command patching
`package.json`: it appears the content has changed
so I modify the script accordingly to keep
patching the correct value with the new format.

I have verified that it works locally, though it
is just as broken as what's in current master
until there's a fix for
https://github.com/NixOS/nixpkgs/issues/326264 .
This commit is contained in:
Mateusz Kowalczyk
2024-07-11 18:21:05 +09:00
parent 212defe037
commit edf67597b3
3 changed files with 6 additions and 8 deletions
@@ -1,6 +1,6 @@
{
"name": "rust-analyzer",
"version": "0.3.1850",
"version": "0.3.2029",
"dependencies": {
"@hpcc-js/wasm": "^2.13.0",
"anser": "^2.1.1",
@@ -21,13 +21,13 @@ let
# Use the plugin version as in vscode marketplace, updated by update script.
inherit (vsix) version;
releaseTag = "2024-02-19";
releaseTag = "2024-07-08";
src = fetchFromGitHub {
owner = "rust-lang";
repo = "rust-analyzer";
rev = releaseTag;
hash = "sha256-Oj/RPMridKpYt3eRqUIPg9YNrj6npG8THIGuWjsamnE=";
hash = "sha256-STmaV9Zu74QtkGGrbr9uMhskwagfCjJqOAYapXabiuk=";
};
build-deps =
@@ -67,9 +67,7 @@ let
' package.json | sponge package.json
mkdir -p $vsix
# vsce ask for continue due to missing LICENSE.md
# Should be removed after https://github.com/rust-lang/rust-analyzer/commit/acd5c1f19bf7246107aaae7b6fe3f676a516c6d2
echo y | npx vsce package -o $vsix/${pname}.zip
npx vsce package -o $vsix/${pname}.zip
'';
};
in
@@ -87,7 +85,7 @@ vscode-utils.buildVscodeExtension {
];
preInstall = lib.optionalString setDefaultServerPath ''
jq '.contributes.configuration.properties."rust-analyzer.server.path".default = $s' \
jq '(.contributes.configuration[] | select(.title == "server") | .properties."rust-analyzer.server.path".default) = $s' \
--arg s "${rust-analyzer}/bin/rust-analyzer" \
package.json | sponge package.json
'';
+1 -1
View File
@@ -85809,7 +85809,7 @@ in
"rust-analyzer-build-deps-../../applications/editors/vscode/extensions/rust-lang.rust-analyzer/build-deps" = nodeEnv.buildNodePackage {
name = "rust-analyzer";
packageName = "rust-analyzer";
version = "0.3.1850";
version = "0.3.2029";
src = ../../applications/editors/vscode/extensions/rust-lang.rust-analyzer/build-deps;
dependencies = [
sources."@azure/abort-controller-1.1.0"