yvvki / rusted-warfare-vscode

Workspace detection, syntax highlighting, code completion and format checker for Rusted Warfare
https://marketplace.visualstudio.com/items?itemName=yvvki.rusted-warfare-vscode
MIT License
2 stars 0 forks source link

Workspace detection #1

Open yvvki opened 9 months ago

yvvki commented 9 months ago

Detect workspace if it's working on a Rusted Warfare mod and take over these file extensions:

I came up with 2 way to deal with this:

  1. 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.
  2. 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.

yvvki commented 6 months ago

This issue is an IDE problem, migrating to https://github.com/yvvki/rusted-warfare-vscode.