-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Output in horizontal panel #2146
Conversation
…itor (causes api tests to fail)
@@ -45,3 +29,25 @@ registerMode({ | |||
moduleId: 'vs/workbench/parts/output/common/outputMode', | |||
ctorName: 'OutputMode' | |||
}); | |||
|
|||
// Register Output Panel | |||
(<panel.PanelRegistry>platform.Registry.as(panel.Extensions.Panels)).registerPanel(new panel.PanelDescriptor( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@isidorn do not forget to add the panel to the same buildfile.js where we added REPL so that the loader can load it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bpasero for some reason it is working wihtout it also. I can add it for precaution
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thats weird, but keep in mind it has to be a built version of VS Code!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stupid me, forgot it is only in build.
✔️
options.wrappingColumn = this.defaultWrappingColumn; // otherwise make sure to restore the defaults | ||
options.lineNumbers = this.defaultLineNumbers; // otherwise make sure to restore the defaults | ||
} | ||
options.wrappingColumn = this.defaultWrappingColumn; // otherwise make sure to restore the defaults |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@isidorn suggest to remove the concept of defaultWrappingColumn and defaultLineNumbers because it was only needed for the outputEditorInput and this now moved nicely into the outputPanel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
} | ||
|
||
public dispose(): void { | ||
this.outputPanel.dispose(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@isidorn suggest to not dispose outputPanel here, it will be handled when the compositePart is disposed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
No description provided.