Replies: 1 comment 4 replies
-
Yes, you're referring to the Multiple Workspace Support feature: This setup shares files/libraries across workspaces to reduce memory usage. A common use case is a
This depends on your project structure 🤔 Since separate workspaces have separate environments, if you want a single environment, include files from different locations using You can add multiple patterns to
This allows LuaLS to find modules in both locations.
If your library files are within the same root workspace (just in different subfolders), you don't need Can you share more details about your workspace structure? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to confirm my understanding here. Originally and naively, I thought workspace folders are used to point the LS at different locations for lua files in a project, and that libraries are meant to point at external stuff that you dont plan to change.
But from reading in different places, and also from #1567 (comment) it seems like workspace folders are completely separate. I read the lsp specifications and maybe this is the intention, I can't say for sure. If so, what is the use of that? Seems to me then you would have just started two different language servers, since they act isolated anyway. Is this about efficiency?
Be that as it may: Do you have an idea how to setup the lua LS so that it includes files from different places in my project? Not just, from, eg,
lua/*
? If I changeruntime.path
it would also apply to libraries, and that's not okay. Or should I point libraries at paths inside the project?Cheers, Daniel.
Beta Was this translation helpful? Give feedback.
All reactions