src/vs/code/node/cliArgs.ts

28 LOC · 28 covered · 0 uncovered · 5 ranges · 3 concepts · 3 introducers · 4 tests

File neighbourhood

The centred file is linked to every concept that introduces one of its ranges, every test that runs code from the file, and the gray connector concepts standing between those tests and the file's own introducer concepts. Undirected links join concepts to every file where they introduce source and concepts to the tests they introduce; arrows show specialization between the displayed concepts and bridge only concepts omitted from this view. Concept colors match the source ranges below; connector concepts have no source color and are shown in gray.

Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the file

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 related-file, concept, and source links on this page.

Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the filecliArgs.ts ×1 · 3 introduced LOCcliArgs.ts ×1cliArgs.ts ×1 · 2 introduced LOCcliArgs.ts ×1cliArgs.ts ×3 · 23 introduced LOCcliArgs.ts ×3cliArgs.test|title=combineUriFlags does not join when next argument is a flag|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/code/test/node/cliArgs.test|title=combineUriFlags does not join when next argument is a flag|occurrence=1cliArgs.test|title=combi…cliArgs.test|title=combineUriFlags does not rewrite past the -- end-of-options marker|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/code/test/node/cliArgs.test|title=combineUriFlags does not rewrite past the -- end-of-options marker|occurrence=1cliArgs.test|title=combi…cliArgs.test|title=combineUriFlags leaves unrelated arguments untouched|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/code/test/node/cliArgs.test|title=combineUriFlags leaves unrelated arguments untouched|occurrence=1cliArgs.test|title=combi…cliArgs.test|title=combineUriFlags rewrites --folder-uri and --file-uri followed by a URI into --flag=value|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/code/test/node/cliArgs.test|title=combineUriFlags rewrites --folder-uri and --file-uri followed by a URI into --flag=value|occurrence=1cliArgs.test|title=combi…Focused file · src/vs/code/node/cliArgs.ts · 28 LOCnode/cliArgs.ts

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the related-file, concept, and source links on this page while the interactive map is unavailable.

1 > /*--------------------------------------------------------------------------------------------- cliArgs.ts ×3
2 > * Copyright (c) Microsoft Corporation. All rights reserved.
3 > * Licensed under the MIT License. See License.txt in the project root for license information.
4 > *--------------------------------------------------------------------------------------------*/
5 >
6 > /**
7 > * Rewrites `--folder-uri <uri>` / `--file-uri <uri>` pairs into a single
8 > * `--flag=value` token so the URI is not a standalone argv entry. Used on
9 > * Windows to avoid Chromium filtering URL-like tokens before main.js runs.
10 > * See https://github.com/microsoft/vscode/issues/209072.
11 > */
12 > export function combineUriFlags(args: string[]): string[] {
13 > const result: string[] = [];
14 > for (let i = 0; i < args.length; i++) {
15 > const arg = args[i];
16 > if (arg === '--') { // end-of-options marker: copy the rest verbatim
17 > result.push(...args.slice(i)); cliArgs.ts ×1
18 > break;
19 > }
20 > if ((arg === '--folder-uri' || arg === '--file-uri') && i + 1 < args.length && !args[i + 1].startsWith('-')) { cliArgs.ts ×3
21 > result.push(`${arg}=${args[i + 1]}`); cliArgs.ts ×1
22 > i++; // skip the value, it's now part of the flag
23 > } else { cliArgs.ts ×3
24 > result.push(arg);
25 > }
26 > }
27 > return result;
28 > }