jlchmura / lpc-language-server

LPC Language Server
MIT License
11 stars 1 forks source link

Allow lpc-config to be located anywhere #40

Open jlchmura opened 3 months ago

jlchmura commented 3 months ago

Allow lpc-config file to be placed anywhere within the project with the proposed rule that:

  1. If lpc-config does not contain a rootDir property, the location of the config file will be used as the lib root dir. otherwise,
  2. The rootDir path will be used as the lib root dir.
mpconley commented 4 weeks ago

I'd like to have the option to have lpc-config.json be elsewhere than the root of the source for my game. I only have directories in the root currently. As you know, we'll find most settings like this in .vscode .github or similar. Perhaps a .lpc folder?

-Tamarindo

jlchmura commented 4 weeks ago

@mpconley This describes what I'm proposing: mudlibDir setting. That should allow the lpc-config.json file to be placed anywhere within the project, and the language server will simply use the first one it finds.