vscode-extensions.asciidoctor.asciidoctor-vscode: 2.8.9 -> 3.4.2

About the postPatch snippet: The 'asciidoctor' program is no longer used
for previews, instead the extension uses
https://docs.asciidoctor.org/asciidoctor.js (which is bundled with the
extension). See upstream:
https://github.com/asciidoctor/asciidoctor-vscode/issues/443
("Remove Asciidoctor CLI option for preview rendering").

authored by Bjørn Forsman and committed by Masum Reza 5d81e7cc 2c0585fc

+22 -8
+13
pkgs/applications/editors/vscode/extensions/asciidoctor.asciidoctor-vscode/commands-abspath.patch
··· 1 + diff --git a/package.json b/package.json 2 + index 7ab70e8..2ebe541 100644 3 + --- a/package.json 4 + +++ b/package.json 5 + @@ -437,7 +437,7 @@ 6 + }, 7 + "asciidoc.asciidoctorpdf_command": { 8 + "type": "string", 9 + - "default": "asciidoctor-pdf", 10 + + "default": "@ASCIIDOCTOR_PDF_BIN@", 11 + "markdownDescription": "%asciidoc.asciidoctorpdf_command.desc%", 12 + "markdownDeprecationMessage": "%asciidoc.asciidoctorpdf_command.deprecationMessage%", 13 + "scope": "resource"
+9 -8
pkgs/applications/editors/vscode/extensions/asciidoctor.asciidoctor-vscode/default.nix
··· 8 8 mktplcRef = { 9 9 name = "asciidoctor-vscode"; 10 10 publisher = "asciidoctor"; 11 - version = "2.8.9"; 12 - sha256 = "1xkxx5i3nhd0dzqhhdmx0li5jifsgfhv0p5h7xwsscz3gzgsdcyb"; 11 + version = "3.4.2"; 12 + hash = "sha256-HG3y7999xeE1erQZCnBgUPj/aC0Kwyn20PEZR9gKrxY="; 13 13 }; 14 14 15 + patches = [ 16 + ./commands-abspath.patch 17 + ]; 18 + 15 19 postPatch = '' 16 - substituteInPlace dist/src/text-parser.js \ 17 - --replace "get('asciidoctor_command', 'asciidoctor')" \ 18 - "get('asciidoctor_command', '${asciidoctor}/bin/asciidoctor')" 19 - substituteInPlace dist/src/commands/exportAsPDF.js \ 20 - --replace "get('asciidoctorpdf_command', 'asciidoctor-pdf')" \ 21 - "get('asciidoctorpdf_command', '${asciidoctor}/bin/asciidoctor-pdf')" 20 + substituteInPlace package.json \ 21 + --replace-fail "@ASCIIDOCTOR_PDF_BIN@" \ 22 + "${asciidoctor}/bin/asciidoctor-pdf" 22 23 ''; 23 24 24 25 meta = {