lua-language-server icon indicating copy to clipboard operation
lua-language-server copied to clipboard

Enhancement Ability to inherit/merge settings

Open Nexela opened this issue 3 years ago • 0 comments

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.

{
// The following settings would merge with the next higher scope instead of overwriting
"Lua.workspace.mergeIgnore": ["pathToAdditionalIgnore"]
"Lua.workspace.mergeLibrary": ["pathToAdditionalLibrary"]
}

Nexela avatar Jul 19 '22 23:07 Nexela