From 08bdf46c734c297b9ddece6c6c2a1db03380760e Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 24 Mar 2022 19:02:57 +0100 Subject: [PATCH 1/4] Fix the `vscode-git-patch` extension build --- extensions.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/extensions.json b/extensions.json index 49e1810d3..86a975564 100644 --- a/extensions.json +++ b/extensions.json @@ -944,7 +944,13 @@ "repository": "https://github.com/paiqo/Databricks-VSCode" }, "paragdiwan.gitpatch": { - "repository": "https://github.com/paragdiwan/vscode-git-patch" + "repository": "https://github.com/paragdiwan/vscode-git-patch", + "location": ".", + "custom": [ + "git checkout a648bb3656d0c5c9e9c8cb281eb71d56fd0e9f6a", + "npm i", + "vsce package --out extension.vsxi" + ] }, "patbenatar.advanced-new-file": { "repository": "https://github.com/patbenatar/vscode-advanced-new-file" From 48ff6d7f2c2db83098d15c1d76f02ee2965e8411 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 24 Mar 2022 19:46:26 +0100 Subject: [PATCH 2/4] Fix typo --- extensions.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions.json b/extensions.json index 86a975564..fda939610 100644 --- a/extensions.json +++ b/extensions.json @@ -949,7 +949,7 @@ "custom": [ "git checkout a648bb3656d0c5c9e9c8cb281eb71d56fd0e9f6a", "npm i", - "vsce package --out extension.vsxi" + "vsce package --out extension.vsix" ] }, "patbenatar.advanced-new-file": { From f3a65b38779badbb7148e1ee766a9806c4ee0f4f Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 24 Mar 2022 19:50:27 +0100 Subject: [PATCH 3/4] Fix non-functioning command --- extensions.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions.json b/extensions.json index fda939610..19e423adc 100644 --- a/extensions.json +++ b/extensions.json @@ -949,7 +949,7 @@ "custom": [ "git checkout a648bb3656d0c5c9e9c8cb281eb71d56fd0e9f6a", "npm i", - "vsce package --out extension.vsix" + "npx vsce package --out extension.vsix" ] }, "patbenatar.advanced-new-file": { From 530ae138c81466b730e36ea6352fa6447c5ae1ea Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 24 Mar 2022 21:52:57 +0100 Subject: [PATCH 4/4] Apply the fix only for v0.2.1 --- extensions.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions.json b/extensions.json index 19e423adc..7edd09360 100644 --- a/extensions.json +++ b/extensions.json @@ -947,7 +947,7 @@ "repository": "https://github.com/paragdiwan/vscode-git-patch", "location": ".", "custom": [ - "git checkout a648bb3656d0c5c9e9c8cb281eb71d56fd0e9f6a", + "grep '\"version\": \"0.2.1\"' package.json && git checkout a648bb3656d0c5c9e9c8cb281eb71d56fd0e9f6a", "npm i", "npx vsce package --out extension.vsix" ]