Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

monorepo with multi languages #14

Open
Stanislav-Lapata opened this issue Nov 29, 2024 · 2 comments
Open

monorepo with multi languages #14

Stanislav-Lapata opened this issue Nov 29, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Stanislav-Lapata
Copy link

Stanislav-Lapata commented Nov 29, 2024

I have repo with structure

repo-name/
  backend/
    app/
    ...
    Gemfile
    Gemfile.lock
    ...
  frontend/
  admin/
  ...

backend folder include rails app
I run zed from repo-name folder and expect that ruby extension detects Gemfile file and will start ruby-lsp/solargraph/rubocop inside backend/ folder not root folder but it starts lsp from root and creates .ruby-lsp folder in root folder
screenshot-2024-11-29-07-33-39

.zed/settings.json file

{
 "languages": {
   "Ruby": {
     "language_servers": [
       "ruby-lsp",
       "!solargraph",
       "..."
     ],
     "format_on_save": "on",
   },
 },
}
@vitallium
Copy link
Collaborator

Hello! AFAIK this is not currently possible but there is a related discussion about extending the Extension API to support running multiple LSPs in different directories - zed-industries/zed#21990

You might be able to work around this by adding project folders from the monorepo as separate folders to your workspace.

@vitallium vitallium added the enhancement New feature or request label Dec 14, 2024
@Stanislav-Lapata
Copy link
Author

@vitallium thanks for the answer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants