terminalEnvironment.ts ×1

Frontier kind: Joint frontier

unlabeled · c_cf4d034bbde3

2 tests · 24838 LOC · 126 files · introduces 1 test · 61 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
1 range61 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
2704 ranges24838 lines · 126 files · Browse complete extent
All tests (intent)
2 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 61 introduced LOC across 1 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/workbench/contrib/terminal/common/terminalEnvironment.ts 61 introduced LOC · 1 range

Open complete file

116 }
117 if (n === 1) {
118 > // The local may only contain the language, not the variant, if this is the case guess the terminalEnvironment.ts
119 > // variant such that it can be used as a valid $LANG variable. The language variant chosen
120 > // is the original and/or most prominent with help from
121 > // https://stackoverflow.com/a/2502675/1156119
122 > // The list of locales was generated by running `locale -a` on macOS
123 > const languageVariants: { [key: string]: string } = {
124 > af: 'ZA',
125 > am: 'ET',
126 > be: 'BY',
127 > bg: 'BG',
128 > ca: 'ES',
129 > cs: 'CZ',
130 > da: 'DK',
131 > // de: 'AT',
132 > // de: 'CH',
133 > de: 'DE',
134 > el: 'GR',
135 > // en: 'AU',
136 > // en: 'CA',
137 > // en: 'GB',
138 > // en: 'IE',
139 > // en: 'NZ',
140 > en: 'US',
141 > es: 'ES',
142 > et: 'EE',
143 > eu: 'ES',
144 > fi: 'FI',
145 > // fr: 'BE',
146 > // fr: 'CA',
147 > // fr: 'CH',
148 > fr: 'FR',
149 > he: 'IL',
150 > hr: 'HR',
151 > hu: 'HU',
152 > hy: 'AM',
153 > is: 'IS',
154 > // it: 'CH',
155 > it: 'IT',
156 > ja: 'JP',
157 > kk: 'KZ',
158 > ko: 'KR',
159 > lt: 'LT',
160 > // nl: 'BE',
161 > nl: 'NL',
162 > no: 'NO',
163 > pl: 'PL',
164 > pt: 'BR',
165 > // pt: 'PT',
166 > ro: 'RO',
167 > ru: 'RU',
168 > sk: 'SK',
169 > sl: 'SI',
170 > sr: 'YU',
171 > sv: 'SE',
172 > tr: 'TR',
173 > uk: 'UA',
174 > zh: 'CN',
175 > };
176 > if (Object.prototype.hasOwnProperty.call(languageVariants, parts[0])) {
177 > parts.push(languageVariants[parts[0]]);
178 > }
179 } else {
180 // Ensure the variant is uppercase to be a valid $LANG