Skip to content

Commit 66c1da2

Browse files
authored
Merge pull request #1331 from quarto-dev/bugfix/ext-optics
`quarto list extensions` command lists `formats` incorrectly
2 parents 5aef6f9 + c6967f4 commit 66c1da2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/command/list/cmd.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ async function outputExtensions(
8888
}
8989

9090
if (
91-
extension.contributes.formats
91+
extension.contributes.formats &&
92+
Object.keys(extension.contributes.formats).length > 0
9293
) {
9394
contribs.push("formats");
9495
}
@@ -104,7 +105,7 @@ async function outputExtensions(
104105
extensionEntries.push(row);
105106
});
106107

107-
const table = new Table().header(["Id", "Version", "Type"]).body(
108+
const table = new Table().header(["Id", "Version", "Contributes"]).body(
108109
extensionEntries,
109110
).padding(4);
110111
info(table.toString());

0 commit comments

Comments
 (0)