src/vs/platform/terminal/common/xterm/shellIntegrationAddon.ts/parseMarkSequence
export function parseMarkSequence(sequence: string[]): { id?: string; hidden?: boolean } {
	let id = undefined;
	let hidden = false;
	for (const property of sequence) {
		if (property === 'Hidden') {
			hidden = true;
		}
		if (property.startsWith('Id=')) {
			id = property.substring(3);
		}
	}
	return { id, hidden };
}