Replies: 1 comment
-
(First thing first, I'm no maintainer and following are just my own opinions, which cannot represent maintainer's view 😄 ) Most of the time, in a workspace one would use submodules as 3rd party libraries.
If ignore submodule is not the default, this will certainly increase luals start up time and memory usage. In addition, this (But you're right that one can opt-out with "workspace.ignoreSubmodules")
You mentioned that you workspace is a multi-repo, I am not sure if this is the norm in luals's community / user base. Meanwhile luals's default setting / single workspace mode might not be suitable for a mult-repo / monorepo. The main issue is that each repo might require a separate environment / meta definition scope, such that the types defined will not affect other projects. To deal with this, luals provides support to the multi-root workspace of vscode. |
Beta Was this translation helpful? Give feedback.
-
Hello, I hope this message finds you well.
It seems counter-intuitive that submodules are ignored by default, as my workflow is multi-repo with each repo checked out in its own submodule, and I found that no submodules would load into intellisense. At first, I thought I was encountering a bug or an error in my code with how I was loading submodules, but after closely comparing a submodule to a non-submodule and finding they were identical, only then did I understand that this was a configuration issue.
It seems to me that the alternative of noisy intellisense, where one can opt-out with "workspace.ignoreSubmodules", rather than intellisense not finding the submodule with no explanation why, would be preferable.
For your kind consideration,
Beta Was this translation helpful? Give feedback.
All reactions