Skip to content

Commit 6152c48

Browse files
committed
Remove markdown code fences from generated ASCII tree output
1 parent 76dd1cd commit 6152c48

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/editor/src/commands/copy-merge-commit-details-command.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export const copy_merge_commit_details_command = (): vscode.Disposable => {
156156
const extracted_paths = AsciiTree.extract_paths(log_output)
157157
let tree_text = ''
158158
if (extracted_paths.length > 0) {
159-
tree_text = '```\n' + AsciiTree.generate(extracted_paths) + '\n```'
159+
tree_text = AsciiTree.generate(extracted_paths)
160160
}
161161

162162
const final_text = `${final_bullets}${tree_text ? '\n\n' + tree_text : ''}`

‎apps/editor/src/commands/generate-commit-message-commands/actions/run-generate-action.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ export const run_generate_action = async (params: {
669669
const display_paths = selected_files_to_attach.map((p) =>
670670
normalize_path(vscode.workspace.asRelativePath(p))
671671
)
672-
return '\n\n```\n' + AsciiTree.generate(display_paths) + '\n```'
672+
return '\n\n' + AsciiTree.generate(display_paths)
673673
}
674674

675675
return ''

0 commit comments

Comments
 (0)