Skip to content

Commit cde945b

Browse files
Copilotmatt-pharr
andcommitted
fix: hide tree param in script dialog
Co-authored-by: matt-pharr <25289941+matt-pharr@users.noreply.github.com>
1 parent 03082ff commit cde945b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

electron/main/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,10 @@ if (!canRegisterHandlers) {
446446
const typeHint = typePart ? typePart.trim() : undefined;
447447
const defaultValue = defaultParts.length > 0 ? defaultParts.join('=').trim() : undefined;
448448

449+
if (name === 'tree') {
450+
continue;
451+
}
452+
449453
params.push({
450454
name,
451455
type: typeHint || 'unknown',
@@ -468,6 +472,10 @@ if (!canRegisterHandlers) {
468472
const name = namePart.trim();
469473
const typeHint = typePart ? typePart.trim() : undefined;
470474

475+
if (name === 'tree') {
476+
continue;
477+
}
478+
471479
params.push({
472480
name,
473481
type: typeHint || 'Any',

0 commit comments

Comments
 (0)