slackhq / vscode-hack

Hack language & HHVM debugger support for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=pranayagarwal.vscode-hack
MIT License
76 stars 38 forks source link

Suggestion: Namespace suggestions #112

Open yucombinator opened 4 years ago

yucombinator commented 4 years ago

I created a proof of concept that uses hhvm --search and Code Actions to provide a (rudimentary) namespace suggestions for unresolved symbols.

Demo here: https://imgur.com/S9zeQue

How it works:

Ideally this functionality can be added to hh_client LSP server and potentially used for autocompletion. I can clean this up and make a PR but the code behind the demo can be find in its WIP here.

cc: @Wilfred