File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed
Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 7878 tooltiptext =" &terminateProcess.tooltiptext; "
7979 oncommand =" ko.run.output.kill(-1);"
8080 disabled =" true" />
81+ <toolbarbutton id =" runoutput-clear-button"
82+ class =" icon-close"
83+ tooltiptext =" &clearOutput.tooltiptext; "
84+ oncommand =" ko.run.output.clearOutput();" />
8185 </toolbar >
8286 </box >
8387
Original file line number Diff line number Diff line change @@ -353,6 +353,21 @@ this.kill = function RunOutput_Kill(retval)
353353 }
354354}
355355
356+ /** Clear */
357+ this . clearOutput = function RunOutput_ClearOutput ( )
358+ {
359+ var descWidget = document . getElementById ( "runoutput-desc" ) ;
360+ var cmdWidget = document . getElementById ( "runoutput-command" ) ;
361+ descWidget . setAttribute ( "value" , "" ) ;
362+ cmdWidget . setAttribute ( "value" , "" ) ;
363+
364+ // Clear session
365+ if ( _gTerminalView && ! _gTerminalHandler . active )
366+ {
367+ _gTerminalView . startSession ( true ) ;
368+ _gTerminalView . endSession ( ) ;
369+ }
370+ }
356371
357372function _SetView ( editor , showParsedOutputList )
358373{
Original file line number Diff line number Diff line change 5454<!ENTITY checkForUpdates.label "Check for Updates...">
5555<!ENTITY checkSyntaxNow.label "Check syntax now">
5656<!ENTITY cleanLineEndings.label "Clean Line Endings">
57+ <!ENTITY clearOutput.tooltiptext "Clear Output">
5758<!ENTITY clearSearchHighlighting.label "Clear Highlighting">
5859<!ENTITY clearWarningErrorSquigglies.label "Clear warning/error squigglies">
5960<!ENTITY close.label "Close">
You can’t perform that action at this time.
0 commit comments