From 37a17215bd0864b654ac918f687fbf47afd64cdc Mon Sep 17 00:00:00 2001 From: Guillaume Grossetie Date: Sun, 2 Oct 2022 17:08:07 +0200 Subject: [PATCH] resolves #639 set env attribute to vscode --- src/asciidocParser.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/asciidocParser.ts b/src/asciidocParser.ts index af6b8f1c..ac8c3f23 100644 --- a/src/asciidocParser.ts +++ b/src/asciidocParser.ts @@ -63,6 +63,7 @@ export class AsciidocParser { const options: { [key: string]: any } = { attributes: { 'env-vscode': '', + env: 'vscode', ...asciidoctorAttributes, }, backend, @@ -91,6 +92,7 @@ export class AsciidocParser { const document = processor.load(textDocument.getText(), { attributes: { 'env-vscode': '', + env: 'vscode', }, extension_registry: registry, sourcemap: true, @@ -155,6 +157,7 @@ export class AsciidocParser { } }) attributes['env-vscode'] = '' + attributes.env = 'vscode' const baseDir = AsciidocParser.getBaseDir(doc.fileName) const templateDirs = this.getTemplateDirs()