get enabled() {
return !this.debuggerWhen || this.contextKeyService.contextMatchesRules(this.debuggerWhen);
debugger.ts
}
get isHiddenFromDropdown() {
Frontier kind: Joint frontier
unlabeled · c_b5f7844b6cfa
1 test · 14759 LOC · 72 files · introduces 1 test · 89 LOC · 3 files
The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.
Introduced files, introduced tests, and structurally relevant concept specialization
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 native relationship evidence on this page.
Graph controls are ready.
Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.
Every exact file and test below is linked only from the concept that introduces it.
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/charCode.test|title=CharCode has good values|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/path.test|title=Paths (Node Implementation) path|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/uri.test|title=URI File paths containing apostrophes break URI parsing and cannot be opened #276075|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/uri.test|title=URI URI#file, win-speciale|occurrence=1Every collected test enters the hierarchy at exactly one concept.
1 test introduced at this concept.
Every collected source range enters the hierarchy at exactly one concept.
3 files ranked by introduced lines: 89 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
get enabled() {
return !this.debuggerWhen || this.contextKeyService.contextMatchesRules(this.debuggerWhen);
debugger.ts
}
get isHiddenFromDropdown() {
getSchemaAttributes(definitions: IJSONSchemaMap): IJSONSchema[] | null {
if (!this.debuggerContribution.configurationAttributes) {
return null;
}
// fill in the default configuration attributes shared by all adapters.
return Object.entries(this.debuggerContribution.configurationAttributes).map(([request, attributes]) => {
const definitionId = `${this.type}:${request}`;
const platformSpecificDefinitionId = `${this.type}:${request}:platform`;
const defaultRequired = ['name', 'type', 'request'];
attributes.required = attributes.required && attributes.required.length ? defaultRequired.concat(attributes.required) : defaultRequired;
attributes.additionalProperties = false;
attributes.type = 'object';
if (!attributes.properties) {
attributes.properties = {};
}
properties['type'] = {
enum: [this.type],
enumDescriptions: [this.label],
description: nls.localize('debugType', "Type of configuration."),
pattern: '^(?!node2)',
deprecationMessage: this.debuggerContribution.deprecated || (this.enabled ? undefined : debuggerDisabledMessage(this.type)),
doNotSuggest: !!this.debuggerContribution.deprecated,
errorMessage: nls.localize('debugTypeNotRecognised', "The debug type is not recognized. Make sure that you have a corresponding debug extension installed and that it is enabled."),
patternErrorMessage: nls.localize('node2NotSupported', "\"node2\" is no longer supported, use \"node\" instead and set the \"protocol\" attribute to \"inspector\".")
};
properties['request'] = {
enum: [request],
description: nls.localize('debugRequest', "Request type of configuration. Can be \"launch\" or \"attach\"."),
};
for (const prop in definitions['common'].properties) {
properties[prop] = {
$ref: `#/definitions/common/properties/${prop}`
};
}
Object.keys(properties).forEach(name => {
const property = properties[name];
// A debugger extension may contribute a malformed property whose value is not a schema
// object (e.g. the bare string 'integer' instead of `{ "type": "integer" }`). Skip those so
// one bad contribution does not throw and abort schema generation for every debugger.
if (isObject(property)) {
// Use schema allOf property to get independent error reporting #21113
ConfigurationResolverUtils.applyDeprecatedVariableMessage(property);
} else {
malformedPropertyNames.push(name);
}
});
if (malformedPropertyNames.length) {
this.logService.warn(`Ignoring malformed debug configuration schema properties for type '${this.type}': ${malformedPropertyNames.join(', ')}`);
}
definitions[definitionId] = { ...attributes };
definitions[platformSpecificDefinitionId] = {
type: 'object',
additionalProperties: false,
properties: filter(properties, key => key !== 'type' && key !== 'request' && key !== 'name')
};
// Don't add the OS props to the real attributes object so they don't show up in 'definitions'
const attributesCopy = { ...attributes };
attributesCopy.properties = {
...properties,
...{
windows: {
$ref: `#/definitions/${platformSpecificDefinitionId}`,
description: nls.localize('debugWindowsConfiguration', "Windows specific launch configuration attributes."),
},
osx: {
$ref: `#/definitions/${platformSpecificDefinitionId}`,
description: nls.localize('debugOSXConfiguration', "OS X specific launch configuration attributes."),
},
linux: {
$ref: `#/definitions/${platformSpecificDefinitionId}`,
description: nls.localize('debugLinuxConfiguration', "Linux specific launch configuration attributes."),
}
}
};
return attributesCopy;
});
}
}
export function filter(obj: obj, predicate: (key: string, value: any) => boolean): obj {
for (const [key, value] of Object.entries(obj)) {
if (predicate(key, value)) {
result[key] = value;
}
}
return result;
}
export function mapValues<T extends {}, R>(obj: T, fn: (value: T[keyof T], key: string) => R): { [K in keyof T]: R } {
export function applyDeprecatedVariableMessage(schema: IJSONSchema) {
schema.pattern = schema.pattern || '^(?!.*\\$\\{(env|config|command)\\.)';
configurationResolverUtils.ts
schema.patternErrorMessage = schema.patternErrorMessage ||
nls.localize('deprecatedVariables', "'env.', 'config.' and 'command.' are deprecated, use 'env:', 'config:' and 'command:' instead.");
}