提交 86f1ca4a 编写于 作者: I Isidor Nikolic 提交者: GitHub

Merge pull request #22212 from landonepps/master

More robust deprecation warning for launch.json (Fixes #21946)
......@@ -227,7 +227,7 @@ export class Adapter {
};
Object.keys(attributes.properties).forEach(name => {
// Use schema allOf property to get independent error reporting #21113
attributes.properties[name].pattern = attributes.properties[name].pattern || '^(?!\\$\\{(env|config|command)\\.)';
attributes.properties[name].pattern = attributes.properties[name].pattern || '^(?!.*\\$\\{(env|config|command)\\.)';
attributes.properties[name].patternErrorMessage = attributes.properties[name].patternErrorMessage ||
nls.localize('deprecatedVariables', "'env.', 'config.' and 'command.' are deprecated, use 'env:', 'config:' and 'command:' instead.");
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册