Skip to content

chore(cli): rename createTempFile to getTempFilePath - #2285

Merged
netomi merged 1 commit into
eclipse-openvsx:mainfrom
trivikr:rename-create-temp-file
Oct 3, 2026
Merged

netomi merged 1 commit into
eclipse-openvsx:mainfrom
trivikr:rename-create-temp-file

Conversation

@trivikr

@trivikr trivikr commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Refs #2284 (comment).

createTempFile only returns an unused path in the OS temp directory and never creates a file. This renames it to getTempFilePath, makes it synchronous, and takes the postfix as a string instead of a { postfix } object. The three callers in publish.ts and verify.ts are updated.

No user-facing change, so no changelog entry.

The helper only returns an unused path in the OS temp directory and
never creates a file, so the old name was misleading. It is now
synchronous and takes the postfix as a string instead of an options
object.

Signed-off-by: Trivikram Kamat <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The rename is complete, behavior remains unchanged, and tests cover the revised API.

Review effort: Balanced
Findings: None

What changed in this PR

Renames the CLI temporary-path helper to accurately reflect its synchronous behavior.

Changes:

  • Renames createTempFile to getTempFilePath.
  • Simplifies the postfix parameter and updates all callers.
  • Updates unit tests for the synchronous API.
File Description
cli/​src/​util.ts Renames and simplifies the helper.
cli/​src/​publish.ts Updates VSIX path generation.
cli/​src/​verify.ts Updates signature and key path generation.
cli/​test/​unit/​util.spec.ts Updates helper tests.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@netomi
netomi merged commit 603aca2 into eclipse-openvsx:main Oct 3, 2026
5 checks passed
@trivikr
trivikr deleted the rename-create-temp-file branch October 19, 2026 14:11
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.

3 participants