asciidoctor / asciidoctor-vscode

AsciiDoc support for Visual Studio Code using Asciidoctor
Other
322 stars 97 forks source link

"Command" path option is no more in settings #785

Closed Dedeou31 closed 10 months ago

Dedeou31 commented 10 months ago

New version of the extension has remove the "Command" option. My use case used this setting to overwrite the path to launch asciidoctor. Eg: Command: python /home//.docops/TC0032/bin/launch_asciidoctor.py gen_html --env-vscode --asciidoctor

How can we do it with the new version ? If not, is it possible to add this setting to allow user to manage a local launcher ?

Thanks in advance

ggrossetie commented 10 months ago

Hello,

The release note is addressing this breaking change:

NOTE: If you want to keep using asciidoctor CLI, it's possible to setup a similar workflow using both the HTML Preview and Run on Save extensions using the following settings.json:

{
    "emeraldwalk.runonsave": {
        "commands": [
            {
                "match": "\\.adoc$",
                "cmd": "asciidoctor ${file}"
            },
        ]
    }
}

This feature was removed because the maintenance burden was too high and arguably out-of-scope (i.e., better-handled by other extensions).