slackhq / vscode-hack

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

Suggestion: Namespace suggestions #112

Open yucombinator opened 3 years ago

yucombinator commented 3 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