publicodes / language-server

LS and VSCode client for Publicodes
https://marketplace.visualstudio.com/items?itemName=EmileRolley.publicodes-language-server
MIT License
6 stars 0 forks source link

Read `.publicodes.yaml` files same as `.publicodes` #15

Closed fmata closed 4 months ago

fmata commented 4 months ago

Hello, We renamed all .publicodes rules files to .publicodes.yaml to be interoperable with my team which uses VS Code and others IDE as IntelliJ (Webstorm etc). If the extension can understand .publicodes and .publicodes.yaml every developer will be happy :)

EmileRolley commented 4 months ago

Hi, isn't it possible to configure Intellij IDEs to consider .publicodes files as YAML files? Otherwise, it seems fair to me to support .publicodes.yaml I'll look at it :)

(Did you manage to run the VSCode extension? What's your OS?)

fmata commented 4 months ago

Sure we can with IntelliJ but rules are plain YAML, I suppose the need for a custom extension is only for the VS Code extension. When we use "dumb" text editor (Vim, Emacs...) it guess the content by the extension and it's painfull to add a specific handling.