Add Generate Build File and Refresh actions#84
Conversation
Signed-off-by: Sanjula Ganepola <Sanjula.Ganepola@ibm.com>
Signed-off-by: Sanjula Ganepola <Sanjula.Ganepola@ibm.com>
Signed-off-by: Sanjula Ganepola <Sanjula.Ganepola@ibm.com>
| } | ||
| export namespace SourceOrbitTask { | ||
| interface SourceOrbitTask extends TaskDefinition { | ||
| builder: "bob" | "make" | "json"; |
There was a problem hiding this comment.
what about this new imd thing?
There was a problem hiding this comment.
Good catch. I will add that here.
@worksofliam How are these tasks run? Are these something that should be in the list of runnable tasks?

| "name": "Affected Objects", | ||
| "contextualTitle": "Active Editor", | ||
| "when": "vscode-sourceorbit:projectsLoaded == true" | ||
| "contextualTitle": "Active Editor" |
There was a problem hiding this comment.
Why don't you want to delay until there is a SourceOrbit project loaded?
There was a problem hiding this comment.
Should we somehow indicated that these are "Affected IBM i Objects"
This view will popup when the user is doing unrelated things now, they may open a Java files and not see "affected objects"
There was a problem hiding this comment.
Good point. Renaming the view would make sense or updating the welcome text to also say "...affected IBM i objects"
@worksofliam Any thoughts on the visibility of this view?
There was a problem hiding this comment.
@SanjulaGanepola I do think giving it more context with a name like 'Affected IBM i objects' is better. We should do that in this PR.
We aren't going to do this: but for context, a typical way to handle multiple views and ensure they belong to the same group (like IBM i) is use a panel, so then, when the view is moved by the user to another panel (like explorer or scm) then the title becomes 'IBM i: Affected Objects'.
There was a problem hiding this comment.
@worksofliam Updated the text: 1294f4b
As for moving the view outside where it typically belongs, I do see that a contextualTitle was already added to both views which is rendered instead of the panel name:
Active Editor: Source ImpactsSource Changes: Change Impacts
Keep as is? Change to IBM i: ...? Change to Source Orbit: ...?
There was a problem hiding this comment.
If no change is needed, looks good to merge 😃
Signed-off-by: Sanjula Ganepola <Sanjula.Ganepola@ibm.com>
|
@SanjulaGanepola Let's get this branch cleaned up with the latest commits and then I will get to review today. Thanks! |
Signed-off-by: Sanjula Ganepola <Sanjula.Ganepola@ibm.com>
Signed-off-by: Sanjula Ganepola <Sanjula.Ganepola@ibm.com>
Signed-off-by: Sanjula Ganepola <Sanjula.Ganepola@ibm.com>
Signed-off-by: Sanjula Ganepola <Sanjula.Ganepola@ibm.com>
|
@worksofliam PR is ready for review |
There was a problem hiding this comment.
So most of these changes are specifually for the Project Explorer UI. I think a majorty of the new commands make sense and I am happy with them, but I don't think our package.json file should be referencing projectExplorer. Of course, these aren't hard dependencies on Project Explorer, but it becomes soft-circular when we do this.
I personally think any reference to projectExplorer in package.json should be removed (notably the new submenu entry and item/context item) and instead should be added in the Project Explorer extension.
Other than that, a lot of this makes sense to me.
The problem is that Project Explorer does not include Source Orbit as a hard dependency. This means that moving these commands to PE's package.json would break it when Source Orbit is not installed (unless we wrapper these same commands with PE commands). Also, does it make sense for the tree items to be coming from the Source Orbit extension, but the command contributions are coming from PE? What do you think? |
|
@SanjulaGanepola on second thought, as long as this PR doesn't add a hard dependency on anything (like PE) then I think it will be ok. Sound ok? |
|
Yup I agree no hard dependency is the way to go. It should work with or without PE installed |
worksofliam
left a comment
There was a problem hiding this comment.
I think we're almost done. Minor details now.
I do think giving it more context with a name like 'Affected IBM i objects' is better. We should do that in this PR.
Signed-off-by: Sanjula Ganepola <Sanjula.Ganepola@ibm.com>

Changes
Refreshaction to both impact viewsimdbuild file generation support to serverGenerate Build Fileinline submenu with options forBob,Make,Impact Report, andJSON Report@worksofliam Do you have a better name for the
JSON Reportor is this alright?