Skip to content

Commit

Permalink
Prepend :asciidoctorconfigdir: when using .asciidoctorconfig files
Browse files Browse the repository at this point in the history
  • Loading branch information
apupier committed Oct 29, 2022
1 parent 86d7156 commit a8a802c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/asciidoctorConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async function getConfigContent (workspaceFolder: vscode.WorkspaceFolder, config
const asciidoctorConfigUri = vscode.Uri.joinPath(workspaceFolder.uri, configFilename)
if (await exists(asciidoctorConfigUri)) {
const asciidoctorConfigContent = new TextDecoder().decode(await vscode.workspace.fs.readFile(asciidoctorConfigUri))
return `${asciidoctorConfigContent.trim()}\n\n`
return `:asciidoctorconfigdir: ${workspaceFolder.uri.fsPath}\n\n${asciidoctorConfigContent.trim()}\n\n`
}
return undefined
}

0 comments on commit a8a802c

Please sign in to comment.