src/vs/platform/environment/node/environmentService.ts

35 LOC · 29 covered · 6 uncovered · 5 ranges · 4 concepts · 2 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 fileenvironmentService.ts ×1 · 7 introduced LOCenvironmentService.ts ×1environmentService.ts ×2 · 4 introduced LOCenvironmentService.ts ×2environmentService.ts ×3 · 12 introduced LOCenvironmentService.ts ×3environmentService.ts ×4 · 22 introduced LOCenvironmentService.ts ×4environmentService.test|title=EnvironmentService careful with boolean file names|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/environment/test/node/environmentService.test|title=EnvironmentService careful with boolean file names|occurrence=1environmentService.test|…environmentService.test|title=EnvironmentService parseExtensionHostPort when built|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/environment/test/node/environmentService.test|title=EnvironmentService parseExtensionHostPort when built|occurrence=1environmentService.test|…environmentService.test|title=EnvironmentService parseExtensionHostPort when unbuilt|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/environment/test/node/environmentService.test|title=EnvironmentService parseExtensionHostPort when unbuilt|occurrence=1environmentService.test|…environmentService.test|title=EnvironmentService userDataDir|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/environment/test/node/environmentService.test|title=EnvironmentService userDataDir|occurrence=1environmentService.test|…Focused file · src/vs/platform/environment/node/environmentService.ts · 35 LOCnode/environmentService.…

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 > /*--------------------------------------------------------------------------------------------- environmentService.ts ×4
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 > import { homedir, tmpdir } from 'os';
7 > import { NativeParsedArgs } from '../common/argv.js';
8 > import { IDebugParams } from '../common/environment.js';
9 > import { AbstractNativeEnvironmentService, parseDebugParams } from '../common/environmentService.js';
10 > import { getUserDataPath } from './userDataPath.js';
11 > import { IProductService } from '../../product/common/productService.js';
12 >
13 > export class NativeEnvironmentService extends AbstractNativeEnvironmentService {
14 >
15 > constructor(args: NativeParsedArgs, productService: IProductService) {
16 > const homeDir = homedir(); environmentService.ts ×1
17 > super(args, {
18 > homeDir,
19 > tmpDir: tmpdir(),
20 > userDataDir: getUserDataPath(args, productService.nameShort),
21 > }, productService);
22 > }
24 >
25 > export function parsePtyHostDebugPort(args: NativeParsedArgs, isBuilt: boolean): IDebugParams {
26 return parseDebugParams(args['inspect-ptyhost'], args['inspect-brk-ptyhost'], 5877, isBuilt, args.extensionEnvironment);
27 }
29 > export function parseAgentHostDebugPort(args: NativeParsedArgs, isBuilt: boolean): IDebugParams {
30 return parseDebugParams(args['inspect-agenthost'], args['inspect-brk-agenthost'], 5878, isBuilt, args.extensionEnvironment);
31 }
33 > export function parseSharedProcessDebugPort(args: NativeParsedArgs, isBuilt: boolean): IDebugParams {
34 return parseDebugParams(args['inspect-sharedprocess'], args['inspect-brk-sharedprocess'], 5879, isBuilt, args.extensionEnvironment);
35 }