Code Monkey home page Code Monkey logo

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: bmewburn/vscode-intelephense#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

Artur Klesun's Projects

bcu-bugs-public icon bcu-bugs-public

This repository is intended for public documentation and discussion of known bugs in the Blockchain Cuties maintained by players. Issues that get much exposure and reactions are more likely to be picked up by the dev team..

deep-assoc-lang-server icon deep-assoc-lang-server

The backend of the vscode extension. Possibly will reuse it in phpstorm plugin as well, if it grows with it's own stuff like static analyzis.

deep-dict-completion icon deep-dict-completion

Pycharm plugin for deep type inference based dict keys completion. As you may see from commit history, it was not updated for years since I don't use python myself, but I'm still open for small feature requests - if you file an issue, I'll likely implement it in a week or so...

deep-js-completion icon deep-js-completion

A Webstorm/IDEA plugin for js object property completion inferred from a complex context

fix-web-sites icon fix-web-sites

Put here js code that fixes obvious bad things on sites (like ads)

hardsub-ocr-by-font icon hardsub-ocr-by-font

A Rust script that takes an H.264 video and outputs a json file with the timestamps of consequential pixel-wise unchanging (or almost unchanging) frames. Need this for a recording of a visual novel playthrough to detect when text panel changes (plan to feed to OCR!)

io-ts-better-union-error-reporter icon io-ts-better-union-error-reporter

A pretty-printer for io-ts errors that filters out unions that clearly don't match the tag literal in input data - it only includes the union option having the most fields matching the data

kunkka-tor.rent icon kunkka-tor.rent

A web app that allows playing video/music from torrents directly in the browser, without downloading to PC

kusarihime-translation icon kusarihime-translation

Similar to Muramasa, this repo will hold textracted Japanese texts from the VN and all translations I'll manage to produce

muramasa-vn-translation icon muramasa-vn-translation

Gonna put some work towards extracting text, recording gameplay and translating to the Soukou Akki Muramasa Visual Novel

mydelphigame icon mydelphigame

Wrote it last summer, when Sergey Ilyich taught us how to OOP

re-zero-web-novel-ru icon re-zero-web-novel-ru

В эту репу я положу всё что относится к переводу веб новеллы Re:Zero на русский язык: тект переводов с интернетов и скрипты для генерации аудиокниг Text-to-Speech

storyspace icon storyspace

Project is dead. I realized, that 95% of time was wasted writing bicycles (like editable text fields with scroll bars literally from nothing). Maybe i should have started with tkiniter instead of pygame. Functional moved to https://github.com/klesun/old_java_shmidusic

tiled-tmj-typedefs icon tiled-tmj-typedefs

Typescript type definitions for the .tmj JSON tilemap structure exportable from the Tiled tilemap editor. Should be useful for people developing js/ts apps that process Tiled tilemaps: for code completion, type validation, quick documentation

trilem.me icon trilem.me

A trigonal tiles turn-based board game in a browser for 3 players

ts-browser icon ts-browser

Run typescript files with imports on the fly. Like ts-node, but for browser

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.