gundermanc / vs-go

Hack and slash Go language service prototype for VS Win + VS Mac
MIT License
8 stars 2 forks source link

Completion should support locals #49

Open gundermanc opened 5 years ago

kasiabulat commented 5 years ago

I'll try it.

gundermanc commented 5 years ago

Worth noting the completion is a quick and dirty hack today in that it fetches all top level decls in all files. It should be aware of which context we're getting completions (which file and where in the file). Using this info, we can search the AST, find the node containing the point, and then enumerate all items in the enclosing scopes.