mirror of
https://github.com/Microsoft/vscode
synced 2024-09-19 18:48:00 +00:00
parent
6d91b80dd8
commit
601da405f5
|
@ -118,8 +118,11 @@ export class DecorationAddon extends Disposable implements ITerminalAddon {
|
|||
}
|
||||
|
||||
public clearDecorations(): void {
|
||||
this._placeholderDecoration?.dispose();
|
||||
this._placeholderDecoration?.marker.dispose();
|
||||
if (this._placeholderDecoration) {
|
||||
this._placeholderDecoration.marker.dispose();
|
||||
this._placeholderDecoration.dispose();
|
||||
this._placeholderDecoration = undefined;
|
||||
}
|
||||
for (const value of this._decorations.values()) {
|
||||
value.decoration.dispose();
|
||||
dispose(value.disposables);
|
||||
|
|
Loading…
Reference in a new issue