Skip to content

Commit 6688fe6

Browse files
committed
fix: command api
1 parent 4e550ea commit 6688fe6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cm/commandRegistry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1488,7 +1488,7 @@ function normalizeExternalCommand(descriptor) {
14881488
return {
14891489
name,
14901490
description: descriptor?.description || humanizeCommandName(name),
1491-
readOnly: !!descriptor?.readOnly,
1491+
readOnly: descriptor?.readOnly ?? true,
14921492
requiresView,
14931493
key,
14941494
run(view, args) {

0 commit comments

Comments
 (0)