🐛 VS Code extension fails to format on save for TypeScript files
Environment information
Using VS Code Rome Extension version `v0.24.0`
What happened?
- Set
"rome.rome"as default formatter for TypeScript and TypeScriptReact in VS Code. - Attempt to format from the code menu.
Results in an error message.
Extension 'Rome' is configured as formatter but it cannot format 'TypeScript' files
Expected result
Expected the file to be (re)formatted according to Rome rul;es.
Code of Conduct
- [X] I agree to follow Rome's Code of Conduct
This also happens for .tsx files, of type Typescript-JSX
Thank you for reporting this. Would you be able to share some log?
They are in the temporary folder of the OS, under the folder rome-logs. Ideally just the logs of when you attempt to format a file .
I figured out the issue - apparently this setting became enabled in one of your updates. I don't think I turned it on manually. When I turned it off, everything started working:
I figured out the issue - apparently this setting became enabled in one of your updates. I don't think I turned it on manually. When I turned it off, everything started working:
Same, except I do have a Rome config file in my repo, but maybe this is looking somewhere else.
Going to close it, it seems the issue is solved.