Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
#18 Support '${workspaceFolder}' placeholder for markdown_path
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Krieg committed Jul 28, 2020
1 parent 7764bd8 commit e8eac3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/DoExport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ export class DoExport {
return;
}
markdownPath = path.join(workspaceRoot, "doc");
} else {
if (workspace.workspaceFolders) {
markdownPath = markdownPath.replace('${workspaceFolder}', this.getDirectoryName(workspace.workspaceFolders[0].uri.toString()));
}
}
console.debug("Using export path: " + markdownPath);
} catch (ex) {
Expand Down

0 comments on commit e8eac3f

Please sign in to comment.