src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.ts/DecorationAddon/_addCommandFinishedListener
class DecorationAddon:	private _addCommandFinishedListener(): void {
		if (this._commandFinishedListener) {
			return;
		}
		const capability = this._capabilities.get(TerminalCapability.CommandDetection);
		if (!capability) {
			return;
		}
		for (const command of capability.commands) {
			this.registerCommandDecoration(command);
		}
		this._commandFinishedListener = capability.onCommandFinished(command => {
			if (command.command.trim().toLowerCase() === 'clear' || command.command.trim().toLowerCase() === 'cls') {
				this.clearDecorations();
				return;
			}
			this.registerCommandDecoration(command);
		});
	}