1
>
/*---------------------------------------------------------------------------------------------
debugUtils.ts
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 { equalsIgnoreCase } from '../../../../base/common/strings.js';
7
>
import { IDebuggerContribution, IDebugSession, IConfig, IConfigPresentation, State } from './debug.js';
8
>
import { URI as uri } from '../../../../base/common/uri.js';
9
>
import { isAbsolute } from '../../../../base/common/path.js';
10
>
import { deepClone } from '../../../../base/common/objects.js';
11
>
import { Schemas } from '../../../../base/common/network.js';
12
>
import { IEditorService } from '../../../services/editor/common/editorService.js';
13
>
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
14
>
import { ITextModel } from '../../../../editor/common/model.js';
15
>
import { Position } from '../../../../editor/common/core/position.js';
16
>
import { IRange, Range } from '../../../../editor/common/core/range.js';
17
>
import { CancellationToken } from '../../../../base/common/cancellation.js';
18
>
import { coalesce } from '../../../../base/common/arrays.js';
19
>
import { ILanguageFeaturesService } from '../../../../editor/common/services/languageFeatures.js';
20
>
import { OperatingSystem, OS } from '../../../../base/common/platform.js';
21
>
22
>
const _formatPIIRegexp = /{([^}]+)}/g;
23
>
24
>
export function formatPII(value: string, excludePII: boolean, args: { [key: string]: string } | undefined): string {
25
return value.replace(_formatPIIRegexp, function (match, group) {
26
if (excludePII && group.length > 0 && group[0] !== '_') {