LuaLS / LuaLS/lua-language-server
Enhancement Ability to inherit/merge settings
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 4.4k
- Forks
- 442
- PR merge metrics
- No merged PRs in 30d
Description
Vscode / Extension 3.5
Initially I tried to use .luarc.json file per workspace but everything is too similiar and one change means changing them for all
Current Layout
Root/Folder/WorkspaceA
Root/Folder/WorkspaceB
...
In the code-workspace file I set the global stuff
runtime.plugin
workspace.library (all workspaces base off the same libraries)
This works fine until I have to add libraries on an individual workspace. I have to copy the workspace.library settings to the workspace settings.json and then add my extra libraries. So if I change anything in code-workspace libraries I then have to go and remember to change it in any settings.json that may have changed.
```json
{
// The following settings would merge with the next higher scope instead of overwriting
"Lua.workspace.mergeIgnore": ["pathToAdditionalIgnore"]
"Lua.workspace.mergeLibrary": ["pathToAdditionalLibrary"]
}
```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Start by locating how workspace settings are inherited and merged, then define the behavior for Lua.workspace.mergeIgnore and Lua.workspace.mergeLibrary across code-workspace and workspace settings; done means higher-scope values remain effective while workspace-specific paths are added.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100