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

Allow configuring clangd path & arguments on a per-project basis #43

Open
Kummallinen opened this issue Apr 4, 2023 · 3 comments
Open
Labels
enhancement New feature or request

Comments

@Kummallinen
Copy link

Some toolchains will require the use of different clangds, or specific arguemnts to clangd, tohandle custom language extensions. There should be a way for the clangd & arguments used to be configured on a per-project basis

@ghentschke
Copy link
Contributor

ghentschke commented Apr 4, 2023

The current (default) implementation uses a single LS for the workspace.
To implement different LS per project the singleton attribute of the org.eclipse.lsp4e.languageServer extension point has to be set to false.
Since the multiple server topic is a special case, the singleton attribute should be part of an interface or class to be implemented by the extension point.

@ghentschke
Copy link
Contributor

ghentschke commented Apr 4, 2023

e.g. part of the ProcessStreamConnectionProvider

A PR on LSP4E is needed here.

When the singleton attribute is settable via interface/class the toolchain(s) can provide the appropriate LS and settings by implementing the org.eclipse.cdt.lsp.serverProvider extension.

@ruspl-afed
Copy link
Member

Project level configuration is done during rework of access to preferences . However, additional effort required to have multiple LS instances per workspace.

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

3 participants