Hello, I am very new to Odin, and I first wanted to get my editor (vscodium/vs code) to properly warn me about errors, provide suggestions for stuff, tell me what arguments functions take in, etc etc.
I installed the language server from https://github.com/DanielGavin/ols and also the VS Code "Odin Language" extension by DanielGavin. Initially it seemed to work, but it seemed to only update its analysis and suggestions of the code when I saved the file which is extremely annoying.
I did some research (aka asking chatgpt how to do it because usually its way faster than reddit and I wanted to get on with my day dont judge me) and found that I needed to create an ols.json file in my project root and put this in it:
{
"collections": [
{
"name": "core",
"path": "/path-to-odin-folder/core"
},
{
"name": "vendor",
"path": "/path-to-odin-folder/vendor"
}
],
"enable_checker_only_saved": false,
"enable_checker_on_change": true,
"checker_on_change_delay": 400
}
And it seems to work! It updates immediately without me needing to save the file.
However, creating this ols.json for every single project I open is pretty annoying, considering that I probably won't have it do anything else besides this one specific thing. I wasn't able to find any answer online on how to get this to work without each project having an individual ols.json file, so I came here to ask how I can do it.
Thanks