Skip to content

Feature Request: Support Wirebox Injection Definition #21

@homestar9

Description

@homestar9

This VS code plugin makes developing Coldbox apps so much better! Thank you for all the time you've spent working on this. One thing that I feel would be a great addition would be if we could "CTRL + Click" directly to a method in an injected property.

For example, let's say you have the following ColdBox handler:

component {
  property name="userService" inject="UserService";

  function index( event, rc, prc ) {
    prc.user = userService.getById( 1 );
  }

}

The idea would be if VS Code could understand that userService.getById() belongs to the UserService model and could take the user right to the definition of getById() in models/UserService.cfc. Unfortunately, this probably adds quite a bit of complexity because there's no way to know from the injection DSL where UserService lives unless the extension would also understand all of Coldbox's conventions. However, this would be pretty slick if it were possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions