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

internal/lsp/source: respond with the underlying type to Type Definition requests for composite types #292

Conversation

ShoshinNikita
Copy link
Contributor

@ShoshinNikita ShoshinNikita commented Mar 25, 2021

Go to Type Definition works for all composite types except maps because
it is not clear which type to return if both key and value are named types.

Fixes golang/go#45029

@google-cla google-cla bot added the cla: yes label Mar 25, 2021
@gopherbot
Copy link
Contributor

This PR (HEAD: 30acee4) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/tools/+/304789 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

Message from Rebecca Stambler:

Patch Set 1:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/304789.
After addressing review feedback, remember to publish your drafts!

…ion requests for composite types

Go to Type Definition works for all composite types except maps because
it is not clear which type to return if both key and value are named types.

Fixes golang/go#45029
@ShoshinNikita ShoshinNikita force-pushed the type-definition-for-composite-types branch from 30acee4 to 94a0481 Compare March 30, 2021 18:29
@gopherbot
Copy link
Contributor

This PR (HEAD: 94a0481) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/tools/+/304789 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

Message from Nikita Shoshin:

Patch Set 3:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/304789.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Rebecca Stambler:

Patch Set 3: Run-TryBot+1 Code-Review+2 Trust+1

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/304789.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Go Bot:

Patch Set 3:

TryBots beginning. Status page: https://farmer.golang.org/try?commit=78fe7dd6


Please don’t reply on this GitHub thread. Visit golang.org/cl/304789.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from kokoro:

Patch Set 3:

Kokoro presubmit build starting for golang/tools/gopls-legacy/presubmit
Logs at:
https://source.cloud.google.com/results/invocations/e201d8bb-0f61-41bf-8472-09458c3eb91f


Please don’t reply on this GitHub thread. Visit golang.org/cl/304789.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from kokoro:

Patch Set 3: gopls-CI+1

Kokoro presubmit build finished with status: SUCCESS
Logs at: https://source.cloud.google.com/results/invocations/e201d8bb-0f61-41bf-8472-09458c3eb91f


Please don’t reply on this GitHub thread. Visit golang.org/cl/304789.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Go Bot:

Patch Set 3: TryBot-Result+1

TryBots are happy.


Please don’t reply on this GitHub thread. Visit golang.org/cl/304789.
After addressing review feedback, remember to publish your drafts!

gopherbot pushed a commit that referenced this pull request Mar 30, 2021
…ion requests for composite types

Go to Type Definition works for all composite types except maps because
it is not clear which type to return if both key and value are named types.

Fixes golang/go#45029

Change-Id: Ie14f333c51af11033e2494aaaac367d35e7dc87b
GitHub-Last-Rev: 94a0481
GitHub-Pull-Request: #292
Reviewed-on: https://go-review.googlesource.com/c/tools/+/304789
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
Trust: Rebecca Stambler <rstambler@golang.org>
Trust: Heschi Kreinick <heschi@google.com>
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
@gopherbot
Copy link
Contributor

This PR is being closed because golang.org/cl/304789 has been merged.

@gopherbot gopherbot closed this Mar 30, 2021
@ShoshinNikita ShoshinNikita deleted the type-definition-for-composite-types branch March 31, 2021 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

x/tools/gopls: support slices with textDocument/typeDefinition
2 participants