Open enyo opened 3 weeks ago
Oh, and I just realized that .vs
works fine. So it's low priority
Hi, thanks for reporting the problem. Formatting usually breaks when you use something that is not supported in GLSL ES 100 or GLSL ES 300, like the buffer
keyword, or sometimes if you use preprocessor directives. But if you have the same code and it works with multiple file extensions but not with the .frag
, I don't have many ideas.
Maybe you installed another extension that also uses the .frag
file extension. Please check the bottom right corner of the file to see if the language assigned to .frag
files is GLSL
.
If this doesn't help, please provide a minimal reproducible example so I can investigate the problem further.
The extension's version
1.3.8
VS Code's version
1.94.2
Extension host
Desktop VS Code
Operating system
M1 Pro
Description
When I change the fragment shader file extension to
.frag
code formatting fails. If I change it to.glsl
it works fine. It also works fine for the.vert
file.