Skip to content

Add configurable default save name command - #89

Open
liurenfeng94-ops wants to merge 1 commit into
tsperf:mainfrom
liurenfeng94-ops:save-name-command
Open

Add configurable default save name command#89
liurenfeng94-ops wants to merge 1 commit into
tsperf:mainfrom
liurenfeng94-ops:save-name-command

Conversation

@liurenfeng94-ops

@liurenfeng94-ops liurenfeng94-ops commented Jul 28, 2026

Copy link
Copy Markdown

Addresses #20.

This adds a new tsperf.tracer.saveNameCommand setting so users can generate the default save name from a shell command. The command runs in the workspace root, uses the first line of stdout, and falls back to default on empty output or command failure.

Changes:

  • add saveNameCommand to the config schema and generated contributes
  • normalize command output into a safe relative save-name path
  • compute the default save name asynchronously during app initialization
  • add unit tests for save-name normalization

Verified with:

  • pnpm vitest run test/index.test.ts test/save-name.test.ts
  • pnpm typecheck
  • pnpm exec eslint src/appState.ts src/configuration.ts src/constants.ts src/saveName.ts src/storage.ts scripts/generate-contributes.ts test/save-name.test.ts
  • pnpm build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant