grafana / vscode-jsonnet

Full code support (formatting, highlighting, navigation, etc) for Jsonnet
Apache License 2.0
70 stars 9 forks source link

`.jsonnet` files are being recognized as JavaScript files #18

Closed hwittenborn closed 2 years ago

hwittenborn commented 2 years ago

See the following:

image

No clue why it might be happening, I've tried restarting VS Code but it didn't fix anything.

julienduchesne commented 2 years ago

Check if you have a files.associations setting in your workspace or global settings. Perhaps a *.js* association to the javascript language identifier

hwittenborn commented 2 years ago

Looks like I had .jsonnet set to javascript in my config for some reason, I don't remember setting it like that though :P. Anyway, everything's working now, thanks!