Replies: 9 comments 8 replies
-
Please take a look at ToggleSourceAndheaderCommandHandler |
Beta Was this translation helpful? Give feedback.
-
I did, but I only see the call of the |
Beta Was this translation helpful? Give feedback.
-
I would guess you should take a closer look at Maybe lsp4j has to be extended here to support the |
Beta Was this translation helpful? Give feedback.
-
Thank you @ghentschke. I added a class |
Beta Was this translation helpful? Give feedback.
-
I managed to send a I'm far from finishing the new extension, but in case you'd like to take a look at what I have done so far, you could look at my WIP fork. |
Beta Was this translation helpful? Give feedback.
-
I tried implementing a prototype that uses some of the clangd LSP extensions, but there seem to be quite a few limitations. I cannot add any feature to CDT LSP using these extensions. (Instead, I plan to use the extension in another plug-in outside CDT LSP, since it is very specific to our use case.) Though, I think, the extended I've prepared the PR #256 with these LS extensions in the bundle Is there any chance that there will be a new CDT LSP release before 23rd February 2024? (My team has an internal deadline for some features that would be based on some of the changes already merged to master and on the LS extensions I'm discussing here.) |
Beta Was this translation helpful? Give feedback.
-
Can you tell us what prevents you from adding a new feature to cdt-lsp? Maybe I can assist?
I am fine with that.
IMO we can do a new minor release in short term. I can prepare it. I think you want the PR #256 to be included in V1.1.0 Release? Then we should wait on a feedback by @ruspl-afed |
Beta Was this translation helpful? Give feedback.
-
The most relevant changes for us are the following. We hope, they will be released very soon, i.e. before 23rd February. It would be great, if you could prepare a minor release in short term, @ghentschke.
In our team, we're implementing some company-specific Eclipse plug-ins on top of LSP4E and CDT LSP and we want to use the new LSP extensions for clangd in order to request certain details about the C++ element under cursor and for looking up and showing additional documentation in a custom view for that element under cursor. But I don't see any use case for that new LSP extensions in CDT LSP, yet. Besides, it seems that we get the AST only for .hxx files, but not for .cxx files. Concerning the PR #256: @ruspl-afed asked if I planned to add tests in order to show how the new extensions could be used, but I'm not sure what kind of tests would make sense. My first idea was to implement integration tests that really send requests to the LS and check the returned results, but it seems, clangd cannot be found in my test environment. Besides, I'm not sure if such integration tests are desirable, since they might be platform-specific. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much, @ruspl-afed, @ghentschke, and @jonahgraham. |
Beta Was this translation helpful? Give feedback.
-
Hello @jonahgraham and @ghentschke,
I came across the clangd LSP extensions, especially the client-server request for getting the abstract syntax tree (AST) for a given document and range. I'm thinking about preparing a PR for adding that extension to CDT LSP, but I'm stuck finding a way to implement new interface methods added to
org.eclipse.cdt.lsp.services.ClangdLanguageServer
. Could you please give me some hints?I saw that interface is declared in the
org.eclipse.lsp4e.languageServer
extension point, but I don't find an implementing class. The classorg.eclipse.cdt.lsp.internal.server.CLanguageServerStreamConnectionProvider
from that extension point seems to be quite unrelated to theClangdLanguageServer
interface, it doesn't provide any factory method or something similar. What do I miss? Do I have to configure clangd somehow and implement the new interface method(s) somewhere else?I saw, you're already using one extension from clangd.llvm.org in the
org.eclipse.cdt.lsp.internal.clangd.editor.handler.ToggleSourceAndHeaderCommandHandler
. That class seems to be the only one that referencesClangdLanguageServer
.This topic is related to eclipse-lsp4e/lsp4e#911 and might be related to #157.
Beta Was this translation helpful? Give feedback.
All reactions