()
| 27 | let needsSoftwareBidi: boolean | undefined |
| 28 | |
| 29 | function needsBidi(): boolean { |
| 30 | if (needsSoftwareBidi === undefined) { |
| 31 | needsSoftwareBidi = |
| 32 | process.platform === 'win32' || |
| 33 | typeof process.env['WT_SESSION'] === 'string' || // WSL in Windows Terminal |
| 34 | process.env['TERM_PROGRAM'] === 'vscode' // VS Code integrated terminal (xterm.js) |
| 35 | } |
| 36 | return needsSoftwareBidi |
| 37 | } |
| 38 | |
| 39 | function getBidi() { |
| 40 | if (!bidiInstance) { |