asciidoctor / asciidoctor-vscode

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

[Windows Only][Antora Support] `include::example$something` not working on windows #880

Open eZioPan opened 1 month ago

eZioPan commented 1 month ago

vscode version: 1.89.1 asciidoctor extension version: 3.2.3 and also from master branch asciidoctor/asciidoctor-vscode@39a3e20


For example, there is a python source code inside src/modules/something/examples/some_python_code.py

And I try include::example$some_python_code.py[] in adoc.

But the vscode extension shows an error like this:

include file not found: .../src/modules/something/pages/examples$some_python_code.py

It seems the extension didn't parse examples$some_python_code.py as a ResourceID at all.

This only happens on windows with example$something syntax. On Linux it just works fine. And if I use include::../examples/something[] on windows, it also works fine.