Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add composer command integration #23

Merged
merged 2 commits into from
Apr 1, 2022
Merged

Conversation

yaegassy
Copy link
Owner

@yaegassy yaegassy commented Apr 1, 2022

Description

Added composer command integration features.

Commands

  • intelephense.composer.runCommand: Run selected composer command
  • intelephense.composer.runCommandPlus: Enter and run additional strings to the selected composer command
  • intelephense.composer.runScriptsCommand: Select and run the script defined in the "scripts section" of composer.json. The pre-xxxx and post-xxxx event scripts are excluded from the list.

Settings(coc-settings.json)

  • intelephense.composer.path: Path to composer command. default: composer
  • intelephense.composer.runCommandList: Set the subcommand of the composer you want to execute, default: ["dump-autoload", "clear-cache", "install", "update"]
  • intelephense.composer.runCommandPlusList: Set the subcommand of the composer you want to execute. Additional strings can be entered and executed in the subcommand. default: ["require", "require --dev", "remove", "remove --dev", "update"]

@yaegassy
Copy link
Owner Author

yaegassy commented Apr 1, 2022

DEMO (mp4)

intelephense.composer.runCommand

coc-intelephense-1-run-command.mp4

@yaegassy
Copy link
Owner Author

yaegassy commented Apr 1, 2022

DEMO (mp4)

intelephense.composer.runCommandPlus

coc-intelephense-2-run-command-plus.mp4

@yaegassy
Copy link
Owner Author

yaegassy commented Apr 1, 2022

DEMO (mp4)

intelephense.composer.runScriptsCommand

coc-intelephense-3-run-scripts-command.mp4

@yaegassy yaegassy merged commit 7ba14d0 into master Apr 1, 2022
@yaegassy yaegassy deleted the feat/composer-commands branch April 1, 2022 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant