src/vs/workbench/contrib/terminal/browser/terminalEditorInput.ts/TerminalEditorInput/isDirty
class TerminalEditorInput:	override isDirty(): boolean {
		if (this._isReverted) {
			return false;
		}
		const confirmOnKill = this._configurationService.getValue<ConfirmOnKill>(TerminalSettingId.ConfirmOnKill);
		if (confirmOnKill === 'editor' || confirmOnKill === 'always') {
			return this._terminalInstance?.hasChildProcesses || false;
		}
		return false;
	}