Add Debug Output Copy All command : Fixes #27079#28197
Add Debug Output Copy All command : Fixes #27079#28197isidorn merged 2 commits intomicrosoft:masterfrom
Conversation
| constructor() { | ||
| super({ | ||
| id: 'repl.action.copyall', | ||
| label: nls.localize('actions.repl.copyall', "Debug Copy All"), |
There was a problem hiding this comment.
I would prefer the title to be "Debug: Console Copy All", that way it nicely aligns with the other debug actions and has a more clear name
| label: nls.localize('actions.repl.copyall', "Debug Copy All"), | ||
| alias: 'Debug Copy All', | ||
| precondition: debug.CONTEXT_IN_DEBUG_REPL, | ||
| kbOpts: { |
There was a problem hiding this comment.
I think you can just leave out the kbOpts and it should nicely compile, please try that
| @@ -230,6 +232,19 @@ export class Repl extends Panel implements IPrivateReplService { | |||
| this.layout(this.dimension); | |||
| } | |||
|
|
|||
There was a problem hiding this comment.
I do not like code duplication, can you please look into removing the CopyAllAction from electronDebugActions.ts. I believe that we can now always use this action instead, can you please try that?
|
@cleidigh great work. I have added some comments directly in the commit which I would like you to address. Apart from that did you try this out, does it work nicely? |
|
@isidorn |
|
@isidorn |
|
@cleidigh great for the two tweaks, feel free to push those. Though after pushing those two twearks we can merge it in and I can look into the last step of combining the two actions. And yeah calling the other one via |
|
@isidorn |
|
@isidorn
export class CopyAllAction extends Action { } bugs me I can't figure it out !! |
|
@cleidigh thanks a lot for trying it out, great work! Let's merge this in and then I will try to remove code duplication |
|
@cleidigh this turned out to be more complicated than expected. |
|
@isidorn |
|
@cleidigh will fix it once I find time, currently working on multi-root features. |
@isidorn
Global CopyAll Debug output