src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.ts/clearPendingResolveSaveConflictMessages
function clearPendingResolveSaveConflictMessages(): void {
	while (pendingResolveSaveConflictMessages.length > 0) {
		const item = pendingResolveSaveConflictMessages.pop();
		item?.close();
	}
}