File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ const gridHeaders = computed(() =>
9090/*
9191 * Convert the comparison grid data to a Markdown table.
9292 */
93- function exportComparisonDataAsMarkdown() {
93+ async function exportComparisonDataAsMarkdown() {
9494 const mdData: Array <Array <string >> = []
9595 const headers = [
9696 ' ' ,
@@ -135,7 +135,7 @@ function exportComparisonDataAsMarkdown() {
135135 return result
136136 }, ' ' )
137137
138- copy (markdown )
138+ await copy (markdown )
139139}
140140
141141const { announce } = useCommandPalette ()
@@ -174,8 +174,8 @@ useCommandPaletteContextCommands(
174174 label: $t (' compare.packages.copy_as_markdown' ),
175175 keywords: [$t (' compare.packages.section_comparison' )],
176176 iconClass: ' i-lucide:copy' ,
177- action : () => {
178- exportComparisonDataAsMarkdown ()
177+ action : async () => {
178+ await exportComparisonDataAsMarkdown ()
179179 announce ($t (' command_palette.announcements.copied_to_clipboard' ))
180180 },
181181 })
You can’t perform that action at this time.
0 commit comments