jakecastelli / trongate-vscode-intellisense

The Intellisense for Trongate PHP Framework (Released in Beta, see dev-1 branch for detail implementation)

Home Page:https://marketplace.visualstudio.com/items?itemName=jc-sf.trongate-intellisense

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trongate VSCode IntelliSense

This is a Trongate Framework specific IntelliSense. It does not contain a general PHP IntelliSense, so recommend you to use PHP Intelephense for a better experience.


Quick Start:

  • Make sure you have an opened Trongate project in a VSCode workspace. The extension will be looking for config, engine, modules, public , templates folders as they are the core anatomy of the Trongate Framework.

  • The current IntelliSense supports Autocomplete, Function Signature, Hover Over, Jump to Definition

Current Support:

Note: The trigger phrases are ' " ( >

If the autocomplete disappears and you want it to pop up again, just simply remove the trigger phrase and type again. The popup should show up again.

For example: when you type $data['view_module'] = , right after you type a single or double quote, the autocomplete will be triggered. If it disappears and you want it to popup again as per our previous example. $data['view_module'] = '', just remove the '' at the end and once you type ' again, it will appear again.

Use examples:

  • Pop up all the modules, within your modules folder:

    • $data['view_module'] = '';

    View Module

  • Pop up all the view files which are within the view_module (you need to do $data['view_module'] = 'something'; to let the IntelliSense know which module's view file you are after):

    • $data['view_file'] = '';

    View File

  • When you try to load up a module:

    • $this->module('');

    Show modules

  • When you try to load all the public functions within the module you just loaded, for example: $this->module('something');:

    • $this->something->

    Load up function

  • Show all the public functions from the templates/controllers/Templates.php:

    • $this->template('');

    Template

  • Show function signature:

    • $this->your_loaded_module->this_is_an_exmaple_function();

    Function Signature

  • Hover for detail

    Hover

  • Jump to definition

    Jump to definition


Running the IntelliSense in debug-mode and see the ins and outs (For Developers)

  • Run npm install in the installed IntelliSense folder. This will install all necessary npm modules in both the client and server folder
  • Open VS Code on this folder.
  • Press F5 and it will open another VSCode instance which you can have a play with.

Bug Report:

If you encounter any bugs or challenges, please submit an issue in our repo. We appreciate your help and support!

About

The Intellisense for Trongate PHP Framework (Released in Beta, see dev-1 branch for detail implementation)

https://marketplace.visualstudio.com/items?itemName=jc-sf.trongate-intellisense

License:GNU General Public License v3.0


Languages

Language:TypeScript 95.3%Language:JavaScript 4.3%Language:Shell 0.4%