-
Notifications
You must be signed in to change notification settings - Fork 5
Use @sourcegraph/lsp-client #28
Comments
Ooh sweet, will do! |
Ok, so I tried it out and it didn't work out of the box, but the issues appear fixable:
I submitted a PR that fixes these two: sourcegraph/lsp-client#11
Here's a WIP for sourcegraph-go #36 in case you want to try to repro locally. |
Thanks for trying it!
Why can't it figure out the import path from
What is it used for / what is it set to?
Does the Go langserver return the hover capability? |
You mean go-langserver could be taught how to strip the noise like I was curious what go-langserver did with the
It's pretty much the same as
Edit I had the wrong document selector. #36 (comment) Yeah, you can see it in the screenshot: |
I mean, it already needs to do something right now since the |
Oh, that's what |
I in any way possible I would like to avoid supporting things like that because it's against the indented use of How does Go know from looking at a file which import path it has? |
Then I need to determine whether or not go-langserver can work without knowing where to mount the repo in the VFS, which deprioritizes this in my TODO list https://github.com/sourcegraph/sourcegraph/issues/2452 |
@felixfbecker I'd be happy to implement custom |
|
Ok, I got lsp-client (mostly) working with these changes:
Xrefs don't work yet. Any idea how lsp-client can support custom references providers such as this? Lines 654 to 670 in feb0a79
|
Oh, I think the Go extension can use the |
Next steps:
|
@sourcegraph/lsp-client
is ready to use, please adopt it and give feedback :)The text was updated successfully, but these errors were encountered: