constructor() {
this._state = Object.create(null);
}
get state(): INotificationViewItemProgressState {
Frontier kind: Code frontier
unlabeled · c_372f74ea8c3b
2 tests · 8579 LOC · 40 files · introduces 0 tests · 82 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/lifecycle.test|title=Lifecycle Action bar has broken accessibility #100273|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/lifecycle.test|title=Lifecycle dispose disposable array|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/languageStatus/test/common/languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication creates new entry when none exists|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/languageStatus/test/common/languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication duplicate IDs with existing entry - fixed version reuses existing|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/languageStatus/test/common/languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication duplicate status IDs - buggy version leaks entry|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/languageStatus/test/common/languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication duplicate status IDs - fixed version reuses entry from current update|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/languageStatus/test/common/languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication mixed unique and duplicate IDs|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/languageStatus/test/common/languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication reuses existing entry from previous update|occurrence=1mocha: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.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Every collected source range enters the hierarchy at exactly one concept.
3 files ranked by introduced lines: 82 introduced LOC across 27 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
constructor() {
this._state = Object.create(null);
}
get state(): INotificationViewItemProgressState {
infinite(): void {
return;
}
this._state.infinite = true;
this._state.total = undefined;
this._state.worked = undefined;
this._state.done = undefined;
this._onDidChange.fire();
}
done(): void {
let actions: INotificationActions | undefined;
if (notification.actions) {
} else if (isErrorWithActions(notification.message)) {
actions = { primary: notification.message.actions };
let priority = notification.priority ?? NotificationPriority.DEFAULT;
if ((priority === NotificationPriority.DEFAULT || priority === NotificationPriority.OPTIONAL) && severity !== Severity.Error) {
priority = NotificationPriority.SILENT; // filtered globally
} else if (isNotificationSource(notification.source) && filter.sources.get(notification.source.id) === NotificationsFilter.ERROR) {
notifications.ts
priority = NotificationPriority.SILENT; // filtered by source
}
return new NotificationViewItem(notification.id, severity, notification.sticky, priority, message, notification.source, notification.progress, actions);
get canCollapse(): boolean {
}
get expanded(): boolean {
private get hasActions(): boolean {
return false;
}
if (!this._actions.primary) {
return false;
}
return this._actions.primary.length > 0;
}
get hasProgress(): boolean {
}
get progress(): INotificationViewItemProgress {
this._progress = this._register(new NotificationViewItemProgress());
this._register(this._progress.onDidChange(() => this._onDidChangeContent.fire({ kind: NotificationViewItemContentChangeKind.PROGRESS })));
}
return this._progress;
}
get message(): INotificationMessage {
}
get source(): string | undefined {
return typeof this._source === 'string' ? this._source : (this._source ? this._source.label : undefined);
notifications.ts
}
get sourceId(): string | undefined {
get actions(): INotificationActions | undefined {
}
get visible(): boolean {
return;
}
this._message = message;
this._onDidChangeContent.fire({ kind: NotificationViewItemContentChangeKind.MESSAGE });
}
updateActions(actions?: INotificationActions): void {
this._onDidChangeContent.fire({ kind: NotificationViewItemContentChangeKind.ACTIONS });
}
updateVisibility(visible: boolean): void {
expand(): void {
return;
}
this._expanded = true;
this._onDidChangeExpansion.fire();
}
collapse(skipEvents?: boolean): void {
equals(other: INotificationViewItem): boolean {
return false;
}
if (typeof this.id === 'string' || typeof other.id === 'string') {
return this.id === other.id;
}
if (typeof this._source === 'object') {
if (this._source.label !== other.source || this._source.id !== other.sourceId) {
return false;
}
return false;
}
if (this._message.raw !== other.message.raw) {
return false;
}
const primaryActions = this._actions?.primary || [];
const otherPrimaryActions = other.actions?.primary || [];
return equals(primaryActions, otherPrimaryActions, (action, otherAction) => (action.id + action.label) === (otherAction.id + otherAction.label));
}
}
export function isNotificationSource(thing: unknown): thing is INotificationSource {
const candidate = thing as INotificationSource;
return typeof candidate.id === 'string' && typeof candidate.label === 'string';
}
return false;
}
export interface INotification extends INotificationProperties {
constructor(id: string, label: string = '', cssClass: string = '', enabled: boolean = true, actionCallback?: (event?: unknown) => unknown) {
this._id = id;
this._label = label;
this._cssClass = cssClass;
this._enabled = enabled;
this._actionCallback = actionCallback;
}
get id(): string {