You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You cannot use the automatic library detection to apply two libraries. For example, with #1556, you would want to apply both busted and luassert, while still having them be separate.
This is due to "Lua.workspace.checkThirdParty" being set to false in the workspace's settings when a library is applied automatically. After this is set, the server no longer tries to apply libraries. This should instead save an array of paths to (or names of) the libraries that have been applied or explicitly ignored. This would allow multiple libraries to be applied automatically.
The text was updated successfully, but these errors were encountered:
Ah! This is an issue I've wanted to raise for a long while but haven't gotten around to 🙃
I ran into this early on with the language server. With neovim my lua-language-server configuration is dynamically generated at startup, allowing me to customize the configuration on a per-machine, per-workspace basis. In practice, I always know which projects use which libraries, so most of it boils down to "this workspace uses OpenResty+Penlight+lfs" or "this workspace uses neovim+luv+etc."
Making 3rd party library detection feature support multiple libraries for a single workspace would be a win for the vscode users while also allowing me to delete a lot of the over-engineered cruft from my neovim confs :)
You cannot use the automatic library detection to apply two libraries. For example, with #1556, you would want to apply both
busted
andluassert
, while still having them be separate.This is due to
"Lua.workspace.checkThirdParty"
being set tofalse
in the workspace's settings when a library is applied automatically. After this is set, the server no longer tries to apply libraries. This should instead save an array of paths to (or names of) the libraries that have been applied or explicitly ignored. This would allow multiple libraries to be applied automatically.The text was updated successfully, but these errors were encountered: