Detect workspace if it's working on a Rusted Warfare mod and take over these file extensions:
.txt
.ini
.template
I came up with 2 way to deal with this:
Create an .RW_MOD file
If a directory contains it, launch the language server and take over the entire directory and its sub-directories.
This is by far the simplest way to do this but it creates said file which can be confusing for people who are not using this language server. Maybe we can insert some content inside the file like:
This file is used for the Rusted Warfare Language Server.
Detect the mod-info.ini file
This makes it concise and compatible with existing mods but can be false positive into detecting plain .ini file.
For now I decides to go with number 2 because I took an inspiration from how JS/TS language server detects package.json automatically.
Detect workspace if it's working on a Rusted Warfare mod and take over these file extensions:
.txt
.ini
.template
I came up with 2 way to deal with this:
.RW_MOD
file If a directory contains it, launch the language server and take over the entire directory and its sub-directories. This is by far the simplest way to do this but it creates said file which can be confusing for people who are not using this language server. Maybe we can insert some content inside the file like:mod-info.ini
file This makes it concise and compatible with existing mods but can be false positive into detecting plain.ini
file.For now I decides to go with number 2 because I took an inspiration from how JS/TS language server detects
package.json
automatically.