WebGL-GLSL-Editor icon indicating copy to clipboard operation
WebGL-GLSL-Editor copied to clipboard

[Bug]: Formatting fails with .frag files

Open enyo opened this issue 1 year ago • 2 comments

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.

enyo avatar Nov 06 '24 13:11 enyo

Oh, and I just realized that .vs works fine. So it's low priority

enyo avatar Nov 06 '24 13:11 enyo

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.

racz16 avatar Nov 06 '24 18:11 racz16