Skip to content

restore new-file template when typeComment is set - #4554

Merged
datho7561 merged 1 commit into
redhat-developer:mainfrom
MeherSru:fix-4539
Oct 20, 2026
Merged

datho7561 merged 1 commit into
redhat-developer:mainfrom
MeherSru:fix-4539

Conversation

@MeherSru

Copy link
Copy Markdown
Contributor

Fixes #4539

After the TypeScript 6 upgrade, fmtr was imported as an object instead of a function, so the new-file template failed whenever typeComment or fileHeader was set. Switched to a default import.

Tested by setting java.templates.typeComment and creating a new Java file. The chooser shows up again.

@datho7561 datho7561 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.

I confirmed this fixes the bug. Thanks, Meher!

@datho7561
datho7561 merged commit ea2852d into redhat-developer:main Oct 20, 2026
2 checks passed
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.

Java template regression

2 participants