Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>deep-assoc-completion-vscodeNew to Visual Studio Code? Get it now.
deep-assoc-completion-vscode

deep-assoc-completion-vscode

klesun

|
6,952 installs
| (4) | Free
Completion and type inference of associative array keys
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

deep-assoc-completion for vscode

A work-in-progress extension for vscode similar to it's phpstorm counterpart

If you are getting irrelevant global keywords in key completion, you most likely want to untick the PHP > Suggest: Basic in vscode Preferences (php.suggest.basic)

image

Place caret between quotes when typing the associative array key and hit Ctrl+Space to get completions

Supposedly will achieve this: https://github.com/bmewburn/vscode-intelephense/issues/249

Uses vscode-intelephense for php syntax tree traversal.

List of features implemented so far: (yet to be updated)

  • Specify associative array keys in phpdoc for completion and type inference with PSALM format.
  • Infer array key types
  • Infer function call result types
  • ...

vscode repo page: https://marketplace.visualstudio.com/items?itemName=klesun.deep-assoc-completion-vscode

Steps to run

  • git clone this project
  • run npm ci (if you forget to do that you'll get The terminal process terminated with exit code: 1 error)
  • open this project root in vscode
  • hit F5 to run sandbox instance of vscode with this extension plugged in

Misc

Smoke Tests repository: https://github.com/klesun-misc/deep-assoc-lsp-tests


This extension is an order we received on https://klesun-productions.com

Thanks to Louis and Mike for being homies

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft