From 6f7307748c414dcb60b45a61de98e5e174cdcbd5 Mon Sep 17 00:00:00 2001 From: Leonardo Pavan Rocha Date: Tue, 23 Apr 2024 13:43:16 +0200 Subject: [PATCH] fix asciidoc preview when antora is using version: true Fixes https://github.com/asciidoctor/asciidoctor-vscode/issues/829 --- src/features/antora/antoraSupport.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/features/antora/antoraSupport.ts b/src/features/antora/antoraSupport.ts index c71eeed0..54e1ff07 100644 --- a/src/features/antora/antoraSupport.ts +++ b/src/features/antora/antoraSupport.ts @@ -25,6 +25,9 @@ export class AntoraConfig { const path = uri.path this.contentSourceRootPath = path.slice(0, path.lastIndexOf('/')) this.contentSourceRootFsPath = ospath.dirname(uri.fsPath) + if (config.version === true) { + config.version = '' + } } }