-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Interactive window and debug console should use same widget for input #127498
Comments
We are now doing this in Debug, SCM and Interactive Window so definitely worth some joint efforts.
Not sure how similar they should look like but the UI should be consistent. |
#126415 (comment) issue has a lot of discussions around various topics so I'd like to share some thoughts on sharing the component after reading @isidorn 's comment
I totally agree. With the ability of moving terminal into the editor, I'm not seeing any reason why we are going to disallow users to move debug console to editor pane in the future. If that happens, the difference between interactive window and debug console (code wise) is basically what Isi said: how we render the execution history. The common component is a composite editor which consists of a monaco editor and a viewer for execution history, which will support
|
#127709 shows a significant difference between the two widgets, navigating up and down vs viewing history. So I'm not sure this is still ok to do if it's going to change that experience |
Is that the right issue reference? |
whoops, nope - edited |
I'm not sure there's really enough code here to be worth it. You have a basic code editor, slightly different actions and options on each side, and I'd close this unless you can point to a bunch of shared code that is too complex to be copy/pasted. |
Both the interactive window and the debug console should use the same widget for input since it has the same functionality:
I can look into extracting the debug console input into a separate widget that could be reused by the interactive window.
Code pointer for Debug Console input https://github.com/microsoft/vscode/blob/main/src/vs/workbench/contrib/debug/browser/repl.ts#L602
The text was updated successfully, but these errors were encountered: