-
Notifications
You must be signed in to change notification settings - Fork 92
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
Save Custom Goals #72
Comments
Exactly, I have similar default workflow "clean package", and that's why we register the command For entries in the context menu as shown below, they are defined in For the items in QuickPick box shown below, currently we directly leverage those pre-defined command I mentioned above. Code is here But I'm wondering that is |
Let's be clear: What you've done already is awesome. I can more or less use this for my every day workflow. However, there are reasons that the maven history command alone is not enough for me. I work on a variety of different maven projects in different workspaces. Each time I open a new project, I have to re-enter the list of custom commands I use for the new project. If possible, it would nice to have a section in the settings section defining a list of goal names and their commands. At which point those could appear as options in the context menu for whenever you activate "custom goals", even if you haven't ran that goal on the particular maven project you're referencing. I believe that solution would be compatible with the current vscode api. |
This feature request makes sense in your scenario. We'll take this into consideration.
Do you mean: right click a project -> click custom goals... -> then your pre-defined commands are listed in the dropdown list?
|
I'm sorry, let me be more clear. After running Ctrl+Shift+P to bring up the command pallet, there is a maven: custom goals option. If, when that command is selected there, there are options for user-defined goals, that would work. I believe that's possible with the current api, but feel free to correct me if I'm wrong. |
I remember we've refactored a lot and removed command palette entry for a lot of commands (such as maven: install ) in order to decrease noise. Following is what I have now. @JustAnotherSoftwareDeveloper Let's first figure out what's the version of the extension you are using? |
I'll have to check when I get into work on monday. It's most likely that I'm on the right version, and simply misremembered the command pallet name. Either way, I'll review my workstation Monday so I can provide a more concise suggestion. |
And back to the place to put pre-defined commands, for the latest version of the extension, following place is somehow feasible. |
While I initially suggested a dropdown option, I'm not tied to it. If there was a "Maven: Execute User Defined Command" (or something with the same functionality but a better name) that listed commands defined in the settings, that would be more than enough to fit my use case. I guess it comes down to the difficulty of implementation and what would provide the best User Experience. |
@JustAnotherSoftwareDeveloper Now in v0.15.0, you are able to set "favorite" command via config entry "maven.terminal.favorites". |
My default workflow is to run "clean install". To do this I have to do the following things
Open the command prompt and navigate to "Maven: Run Goal"
Select Project
Either a) Select the custom goal from history OR b) select custom goal and write it again
It would benefit me to have a way to save off custom goals in a way that they are treated as "first class citizens" IE accessed in a way similar or identical to the standard goals ("install, deploy") are
The text was updated successfully, but these errors were encountered: