microsoft / vscode-anycode

MIT License
326 stars 38 forks source link

Go: inconsistent outline for variables defined in for loops #4

Closed tanhakabir closed 2 years ago

tanhakabir commented 3 years ago

Testing #2389

Shows in in the outline but not want: image

Doesn't show any variables in the outline: image

jrieken commented 3 years ago

It's not the idea to show locals in outline. However, in the first sample the loop defines a struct-type (nameless) and outline only shows one of its properties (in ignores want)

jrieken commented 3 years ago

@tanhakabir I can actually not reproduce. Can you give this another try with anycode@0.0.35 or later? Also, please the repo/files you tried this with

Screen Shot 2021-09-29 at 14 45 48
tanhakabir commented 3 years ago

This is the repo I was working with: https://github.dev/golang/example

Testing with 0.0.36 now