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

Also support single location in Implementation/TypeDefinition/Definition response #45

Merged
merged 1 commit into from
Dec 1, 2021

Conversation

tw4452852
Copy link
Contributor

According to the LSP 3.16 spec, in following responses, both Location and []Location are allowed:

BTW, I encountered this issue when using Zig's language server (zls).

Signed-off-by: Tw wei.tan@intel.com

Copy link
Collaborator

@fhs fhs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

I'm slightly worried about making changes to auto-generated code (tsserver.go), but I think we need a better solution than coping from gopls. There is some discussion upstream here: microsoft/language-server-protocol#67

internal/lsp/protocol/compat.go Outdated Show resolved Hide resolved
internal/lsp/protocol/compat.go Outdated Show resolved Hide resolved
@tw4452852 tw4452852 force-pushed the locations branch 2 times, most recently from 4acb4c1 to 580e150 Compare November 30, 2021 07:02
…ion response

Signed-off-by: Tw <wei.tan@intel.com>
@fhs fhs merged commit eaa8785 into 9fans:master Dec 1, 2021
@tw4452852 tw4452852 deleted the locations branch December 1, 2021 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants