Skip to content

[Feature Request] Hook Onto VSCode Command Execution #6378

@evan-savage

Description

@evan-savage

Is your feature request related to a problem? Please describe.
I'm attempting to have a typescript lightning web component transpile to javascript before deploy to org, but it doesn't seem possible to have this occur each time a developer deploys. I've an equivalent hook for the CLI but it doesn't seem to be possible to hook onto or listen to the vscode command execution without forking the extension.

Describe the solution you'd like
salesforcedx-vscode-lwc compiles relevant typescript files on deploy LWC
or salesforcedx-vscode-core commands offers some way to hook onto command execution externally

Describe alternatives you've considered
Attempts:
Activate command on sf deploy command execution - Works the first time a developer deploys, but I don't seem to be able to disable the extension at will, so the extension remains activated and doesn't run transpilation again for future deployments.
Run transpile on save - Works, but isn't ideal.
Wrapping sf deploy - Determined to be too much of an upset to current process for some folks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:enhancementsFeedback to take into account for existing features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions