File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
src/vs/workbench/contrib/terminal/browser/xterm Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,10 @@ export class DecorationAddon extends Disposable implements ITerminalAddon {
114
114
if ( this . _commandDetectionListeners ) {
115
115
dispose ( this . _commandDetectionListeners ) ;
116
116
}
117
+ this . clearDecorations ( ) ;
118
+ }
119
+
120
+ public clearDecorations ( ) : void {
117
121
this . _placeholderDecoration ?. dispose ( ) ;
118
122
this . _placeholderDecoration ?. marker . dispose ( ) ;
119
123
for ( const value of this . _decorations . values ( ) ) {
Original file line number Diff line number Diff line change @@ -258,8 +258,7 @@ export class XtermTerminal extends DisposableStore implements IXtermTerminal {
258
258
}
259
259
260
260
clearDecorations ( ) : void {
261
- this . _decorationAddon ?. dispose ( ) ;
262
- this . _decorationAddon = undefined ;
261
+ this . _decorationAddon ?. clearDecorations ( ) ;
263
262
}
264
263
265
264
forceRefresh ( ) {
You can’t perform that action at this time.
0 commit comments