Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Breadcrumb dropdown omits items unresolved in current file #1864

Closed
ramya-rao-a opened this issue Aug 21, 2018 · 5 comments
Closed

Breadcrumb dropdown omits items unresolved in current file #1864

ramya-rao-a opened this issue Aug 21, 2018 · 5 comments
Assignees

Comments

@ramya-rao-a
Copy link
Contributor

From @harikb on August 20, 2018 22:23

  • VSCode Version: 1.26.1
  • OS Version: Mac OS 10.12.6

Steps to Reproduce:

  1. Create two files in same directory, same package. Declare a new type and a method on it.
  2. Move the definition of the type from one file to another. Only the file that resolves the declaration will have the correct breadcrumb

Does this issue occur when all extensions are disabled?: N/A

bc1
bc2

Copied from original issue: microsoft/vscode#56854

@ramya-rao-a ramya-rao-a self-assigned this Aug 21, 2018
@ramya-rao-a
Copy link
Contributor Author

From @jrieken on August 21, 2018 15:46

Seems to be a problem with the go extension not providing elements

@ramya-rao-a
Copy link
Contributor Author

@harikb I am able to see the breadcrumbs in both files

image

Am I missing anything in my example?

@Hawken94
Copy link

Hawken94 commented Aug 22, 2018

@ramya-rao-a I am able to see the breadcrumbs in both files, too.

  • VSCode Version: 1.26.1
  • OS Version: Mac OS 10.13.6

@harikb
Copy link

harikb commented Aug 23, 2018

Thanks for looking in to this. It may be related to the experimental languageServer option.

The problem disappears if I turn of this setting

"go.useLanguageServer": true,

How can I help debug further? I was experimenting with language server option based on our previous exchange https://twitter.com/ramyanexus/status/1006404820557709312

@ramya-rao-a
Copy link
Contributor Author

Ah! I see it now.

In this case, the language server doesnt return any symbols for the file.
You can try Ctrl+Shift+o (use cmd on mac instead) and you will see that there are no symbols for the file

I have logged an upstream issue: sourcegraph/go-langserver#311
You can subscribe to the above issue. Once fixed, just update your language server and you should see the fix.

Thanks for reporting!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants