-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
Add Command: Keyboard assignable DebugOutput Copy All #27079
Comments
@cleidigh thanks for creating a follow up issue! So what needs to be done is to register this action globally in the command palette somewhere around here Let me know if you want to do a PR. If not, I can look into this. |
Excellent. Very happy to do a PR ! ;-) (I have to learn to insert emojis) @Tyriar - does this overlap/replace the need for terminal.CopyAll ?
@isidorn - From your original comments/thoughts , should Problems output be excluded? I'm not sure what I like. Thanks |
part of my main impetus was keyboard/steps conservation
|
@Tyriar select all command would be better than copying however we are not supporting this. You can read more about it here @cleidigh as I already mentioned in the other issue it is hard to have one action which will do it for all the panels. Let's just do a PR to add a p.s on the mac there is a nice feature I press |
I don't think your assertion is correct here, you want to listen to the copy event and then set the text based on what the selection is, similar to this https://github.com/sourcelair/xterm.js/blob/35b32b721e9be175c2eedb83c264442d171152b5/src/handlers/Clipboard.ts#L59 |
@Tyriar yes but the tree is virtualised so the native selection can never span more than a page of text in the tree. For more details you can read up on that whole issue |
@isidorn ah yeah, a copy all command is definitely the easy way to go. If you're interested how I'm solving that problem in the terminal you can check out https://github.com/Tyriar/xterm.js/tree/207_selection_manager, it's probably easier to do within the VS Code codebase though thanks to ScrollableElement. |
@isidorn |
looks like maybe adding to DebugActions/repl services to expose a get repl tree contents and then |
@cleidigh you are right this is something which I missed. The constructore signiture makes this a bit more complicated and would break the layering. Due to that I propose we introduce a top level debug panel action next to the Clear Console. This way keyboard users need to press shift + tab 3 times to get to this action. They of course need to be in "Tab moves focus" mode. For this we would just need an icon but I can come up with on. There is no need to rush this in. Pushing to June. |
@isidorn |
@cleidigh sounds good, thanks |
@cleidigh let me know if there are some updates here, if you did not find a neat solution for the global command I might add it to the title bar. |
@isidorn can you think of another way to expose the object without breaking layering? |
@cleidigh yeah the issue is that the |
@isidorn |
@isidorn |
@isidorn everything is done in repl.ts export interface IPrivateReplService { @editorAction
}
|
@cleidigh I like this solution a lot! Can you create a nice PR please and ping me on it? |
@isidorn |
@cleidigh FYI there is a new command |
Add complementary keyboard command to copy all debug output.
Use new base from recently added Context Menu option
The text was updated successfully, but these errors were encountered: