fix(workspace-shell): accept readonly viewCommands in palette builder

Production build (stricter than test/dev) flagged the helper signature
as requiring a mutable array while WorkspaceViewCommandService.commands
returns readonly. The body uses spread, so widening the parameter to
readonly is the correct fix and unblocks `nx build web` plus E2E.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: c2cea9c530e6
This commit is contained in:
4grayandClaude Opus 4.7 committed 2026-05-01 18:59:24 +02:00
1 parent d1cd805622
commit 0ad54e7939
1 file changed
+1 -1
@@ -38,7 +38,7 @@ export interface CommandBuilderContext {
export function buildCommandPaletteItems(
ctx: CommandBuilderContext,
viewCommands: WorkspaceCommandContribution[]
viewCommands: readonly WorkspaceCommandContribution[]
): WorkspaceResolvedCommandItem[] {
return [
...getViewCommandDefinitions(ctx),