Polylith setup in a subdirectory
In our project we have a Polylith setup but in a subdirectory not in the repository root. The reason is because the project is a monorepo and has a lot of other projects as well, not just in languages that is supported by Polylith
I've moved the .lsp folder to the backend folder where our Polylith setup is, but the CPU usage went 100% and I've checked the logs and it was reading the wrong directory
Tried to move back the .lsp settings to the repository root, now it can read it but the CPU usage is still 100%
what's the workspace root you are using in your editor?
What looks like your case when using tree to make sure I understand
I believe I found a solution, I needed to add the following to the .dir-locals.el:
(eval . (when (require 'lsp-mode nil t)
(lsp-workspace-folders-add
(expand-file-name
(locate-dominating-file default-directory ".dir-locals.el")))))not sure why that works but glad it did 😅
It helps setting the :project-root-uri to the right folder