Explore detecting workspace roots automatically
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start by examining the current lockfile lookup and multi-root workspace handling. Prototype searching parent directories for the workspace root, following Bundler's approach. Done means opening VS Code in a nested directory still makes the LSP operate from the application's top-level project root and use everything declared there.
Written by the indexing model from the issue text.
Description
I think we may be able to auto-detect workspaces, in addition to letting users configure multi-root workspaces.
Instead of looking for the lockfile in the directory the user opened the editor, we can follow the same approach Bundler uses to locate the bundle, which is by searching up parent directories.
That would allow people to open VS Code in a directory inside the application's top level, but the LSP would still be operating from that top level project root, giving access to everything the project declares.
Not sure how easy it is, so this issue is for prototyping.
- Dominant language
- Ruby
- Stars
- 2k
- Forks
- 281
- Avg merge
- 1h 47m
- Merged PRs (30d)
- 8
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Shopify/ruby-lsp
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug help-wanted pinned
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug pinned
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 68/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in Shopify/ruby-lsp
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
TheOdinProject/curriculum#31417 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
glossarist/glossarist-ruby#238 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
palladius/rails8-app-on-gcp#145 ·