Skip to content

Commit

Permalink
resolves #639 set env attribute to vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie committed Oct 2, 2022
1 parent ec8b78b commit 37a1721
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/asciidocParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export class AsciidocParser {
const options: { [key: string]: any } = {
attributes: {
'env-vscode': '',
env: 'vscode',
...asciidoctorAttributes,
},
backend,
Expand Down Expand Up @@ -91,6 +92,7 @@ export class AsciidocParser {
const document = processor.load(textDocument.getText(), {
attributes: {
'env-vscode': '',
env: 'vscode',
},
extension_registry: registry,
sourcemap: true,
Expand Down Expand Up @@ -155,6 +157,7 @@ export class AsciidocParser {
}
})
attributes['env-vscode'] = ''
attributes.env = 'vscode'

const baseDir = AsciidocParser.getBaseDir(doc.fileName)
const templateDirs = this.getTemplateDirs()
Expand Down

0 comments on commit 37a1721

Please sign in to comment.