Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.ts
3296 views
1
/*---------------------------------------------------------------------------------------------
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
import * as nls from '../../../../nls.js';
6
import { IJSONSchema } from '../../../../base/common/jsonSchema.js';
7
8
export function applyDeprecatedVariableMessage(schema: IJSONSchema) {
9
schema.pattern = schema.pattern || '^(?!.*\\$\\{(env|config|command)\\.)';
10
schema.patternErrorMessage = schema.patternErrorMessage ||
11
nls.localize('deprecatedVariables', "'env.', 'config.' and 'command.' are deprecated, use 'env:', 'config:' and 'command:' instead.");
12
}
13