Open Tal500 opened 1 year ago
While not necessarily looking for monorepo support. I am too looking for support of R packages in a subdirectory.
When I develop an R package it is usually within a subdirectory of compared to the root of the project. Since I want to keep my package root clean an separate from all the other stuff that might come looking in project development (dockerfiles, ci-files, client-documentation, etc...)
Having the ability to point the LSP towards the directory in which my R package lives would be REALLY great!
Currently this language server have two modes (AFAIK):
While this is a good default behavior in my opinion, I suggest to generalize this and give more control for the user, so in the same workspace there could be many (or even only one) R packages in nested directory.
My suggestion is to introduce a new option to the user configuration, say
nested.packages.depth
. This option is a number specifying what is the maximal nested directory depth that the language server will scan for R package. Some special cases:Inf
(don't know how to handle cycled soft/hard links though)What do you think?