notifications.ts ×23

Frontier kind: Joint frontier

unlabeled · c_ce535dc6eab6

1 test · 8776 LOC · 40 files · introduces 1 test · 137 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
24 ranges137 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
1255 ranges8776 lines · 40 files · Browse complete extent
All tests (intent)
1 testBrowse complete intent

Neighbourhood graph

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.

Introduced files, introduced tests, and structurally relevant concept specializationnotifications.ts ×25 · 82 introduced LOCnotifications.ts ×25notifications.ts ×58 · 436 introduced LOCnotifications.ts ×58errors.ts ×2 · 3 introduced LOCerrors.ts ×2async.ts ×202 · 1247 introduced LOCasync.ts ×202event.ts ×1 · 1 introduced LOCevent.ts ×1event.ts ×4 · 5 introduced LOCevent.ts ×4event.ts ×3 · 12 introduced LOCevent.ts ×3notification.ts ×1 · 5 introduced LOCnotification.ts ×1notification.ts ×3 · 464 introduced LOCnotification.ts ×3actions.ts ×25 · 151 introduced LOCactions.ts ×25resources.ts ×23 · 253 introduced LOCresources.ts ×23severity.ts ×3 · 32 introduced LOCseverity.ts ×3arrays.ts ×1 · 3 introduced LOCarrays.ts ×1arrays.ts ×1 · 2 introduced LOCarrays.ts ×1network.ts ×20 · 292 introduced LOCnetwork.ts ×20strings.test|title=Strings trimWhitespace|occurrence=1 · 0 introduced LOCstrings.test|title=Strin…extpath.ts ×17 · 91 introduced LOCextpath.ts ×17strings.ts ×101 · 542 introduced LOCstrings.ts ×101event.ts ×1 · 5 introduced LOCevent.ts ×1event.ts ×1 · 2 introduced LOCevent.ts ×1lifecycle.ts ×1 · 2 introduced LOClifecycle.ts ×1event.ts ×4 · 20 introduced LOCevent.ts ×4event.ts ×2 · 8 introduced LOCevent.ts ×2event.ts ×2 · 12 introduced LOCevent.ts ×2event.ts ×2 · 5 introduced LOCevent.ts ×2linkedText.ts ×3 · 39 introduced LOClinkedText.ts ×3decorators.test|title=Decorators memoize should memoize methods|occurrence=1 · 0 introduced LOCdecorators.test|title=De…decorators.ts ×1 · 4 introduced LOCdecorators.ts ×1decorators.ts ×1 · 10 introduced LOCdecorators.ts ×1event.ts ×2 · 15 introduced LOCevent.ts ×2event.ts ×1 · 1 introduced LOCevent.ts ×1arrays.ts ×2 · 3 introduced LOCarrays.ts ×2event.ts ×5 · 10 introduced LOCevent.ts ×5arrays.ts ×1 · 2 introduced LOCarrays.ts ×1arrays.ts ×2 · 2 introduced LOCarrays.ts ×2cancellation.test|title=CancellationToken None|occurrence=1 · 0 introduced LOCcancellation.test|title=…event.ts ×1 · 5 introduced LOCevent.ts ×1event.ts ×1 · 2 introduced LOCevent.ts ×1event.ts ×3 · 6 introduced LOCevent.ts ×3decorators.ts ×5 · 11 introduced LOCdecorators.ts ×5lifecycle.test|title=No Leakage Utilities ensureNoDisposablesAreLeakedInTest Basic Test|occurrence=1 · 0 introduced LOClifecycle.test|title=No …decorators.ts ×5 · 17 introduced LOCdecorators.ts ×5event.ts ×8 · 30 introduced LOCevent.ts ×8event.ts ×3 · 19 introduced LOCevent.ts ×3cancelPreviousCalls.ts ×1 · 87 introduced LOCcancelPreviousCalls.ts ×…cancellation.ts ×18 · 90 introduced LOCcancellation.ts ×18lifecycle.ts ×2 · 3 introduced LOClifecycle.ts ×2lifecycle.test|title=Lifecycle dispose disposable array|occurrence=1, lifecycle.test|title=Lifecycle Action bar has broken accessibility #100273|occurrence=1 · 0 introduced LOClifecycle.test|title=Lif…event.ts ×3 · 4 introduced LOCevent.ts ×3event.ts ×1 · 1 introduced LOCevent.ts ×1lifecycle.ts ×3 · 6 introduced LOClifecycle.ts ×3event.ts ×4 · 9 introduced LOCevent.ts ×4event.ts ×2 · 4 introduced LOCevent.ts ×2lifecycle.ts ×2 · 6 introduced LOClifecycle.ts ×2event.ts ×2 · 6 introduced LOCevent.ts ×2event.ts ×93 · 864 introduced LOCevent.ts ×93lifecycle.ts ×1 · 6 introduced LOClifecycle.ts ×1languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication disposes entries no longer in model|occurrence=1 · 0 introduced LOClanguageStatusDedupe.tes…languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication mixed unique and duplicate IDs|occurrence=1, languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication creates new entry when none exists|occurrence=1, +4 · 0 introduced LOClanguageStatusDedupe.tes…uri.test|title=URI URI#file, win-speciale|occurrence=1, charCode.test|title=CharCode has good values|occurrence=1, +2 · 0 introduced LOCuri.test|title=URI URI#f…utils.ts ×3 · 9 introduced LOCutils.ts ×3errorMessage.ts ×6 · 29 introduced LOCerrorMessage.ts ×6lifecycle.ts ×1 · 3 introduced LOClifecycle.ts ×1linkedList.ts ×13 · 44 introduced LOClinkedList.ts ×13instantiation.ts ×5 · 111 introduced LOCinstantiation.ts ×5lifecycle.ts ×1 · 4 introduced LOClifecycle.ts ×1lifecycle.ts ×2 · 6 introduced LOClifecycle.ts ×2lifecycle.ts ×2 · 4 introduced LOClifecycle.ts ×2lifecycle.ts ×1 · 6 introduced LOClifecycle.ts ×1lifecycle.ts ×1 · 1 introduced LOClifecycle.ts ×1lifecycle.ts ×1 · 3 introduced LOClifecycle.ts ×1lifecycle.ts ×3 · 9 introduced LOClifecycle.ts ×3lifecycle.ts ×1 · 2 introduced LOClifecycle.ts ×1lifecycle.ts ×1 · 7 introduced LOClifecycle.ts ×1lifecycle.ts ×4 · 7 introduced LOClifecycle.ts ×4lifecycle.ts ×4 · 8 introduced LOClifecycle.ts ×4lifecycle.ts ×6 · 16 introduced LOClifecycle.ts ×6lifecycle.ts ×2 · 2 introduced LOClifecycle.ts ×2lazy.ts ×1 · 2 introduced LOClazy.ts ×1lifecycle.ts ×1 · 3 introduced LOClifecycle.ts ×1lifecycle.ts ×3 · 3 introduced LOClifecycle.ts ×3lazy.ts ×3 · 37 introduced LOClazy.ts ×3lifecycle.ts ×1 · 2 introduced LOClifecycle.ts ×1lifecycle.ts ×1 · 2 introduced LOClifecycle.ts ×1uint.ts ×2 · 43 introduced LOCuint.ts ×2iterator.ts ×1 · 2 introduced LOCiterator.ts ×1lifecycle.ts ×1 · 3 introduced LOClifecycle.ts ×1map.ts ×97 · 3334 introduced LOCmap.ts ×97src/vs/base/common/actions.ts · 294 LOCcommon/actions.tssrc/vs/base/common/arrays.ts · 949 LOCcommon/arrays.tssrc/vs/base/common/arraysFind.ts · 226 LOCcommon/arraysFind.tssrc/vs/base/common/assert.ts · 91 LOCcommon/assert.tssrc/vs/base/common/async.ts · 2749 LOCcommon/async.tssrc/vs/base/common/cache.ts · 153 LOCcommon/cache.tssrc/vs/base/common/cancellation.ts · 206 LOCcommon/cancellation.tssrc/vs/base/common/charCode.ts · 450 LOCcommon/charCode.tssrc/vs/base/common/collections.ts · 176 LOCcommon/collections.tssrc/vs/base/common/decorators.ts · 131 LOCcommon/decorators.tssrc/vs/base/common/decorators/cancelPreviousCalls.ts · 168 LOCdecorators/cancelPreviou…src/vs/base/common/errorMessage.ts · 113 LOCcommon/errorMessage.tssrc/vs/base/common/errors.ts · 357 LOCcommon/errors.tssrc/vs/base/common/event.ts · 1964 LOCcommon/event.tssrc/vs/base/common/extpath.ts · 433 LOCcommon/extpath.tssrc/vs/base/common/functional.ts · 32 LOCcommon/functional.tssrc/vs/base/common/iterator.ts · 194 LOCcommon/iterator.tssrc/vs/base/common/lazy.ts · 57 LOCcommon/lazy.tssrc/vs/base/common/lifecycle.ts · 974 LOCcommon/lifecycle.tssrc/vs/base/common/linkedList.ts · 151 LOCcommon/linkedList.tssrc/vs/base/common/linkedText.ts · 55 LOCcommon/linkedText.tssrc/vs/base/common/map.ts · 1016 LOCcommon/map.tssrc/vs/base/common/marshallingIds.ts · 33 LOCcommon/marshallingIds.tssrc/vs/base/common/network.ts · 440 LOCcommon/network.tssrc/vs/base/common/path.ts · 1589 LOCcommon/path.tssrc/vs/base/common/platform.ts · 281 LOCcommon/platform.tssrc/vs/base/common/process.ts · 76 LOCcommon/process.tssrc/vs/base/common/resources.ts · 444 LOCcommon/resources.tssrc/vs/base/common/severity.ts · 56 LOCcommon/severity.tssrc/vs/base/common/stopwatch.ts · 41 LOCcommon/stopwatch.tssrc/vs/base/common/strings.ts · 1413 LOCcommon/strings.tssrc/vs/base/common/symbols.ts · 9 LOCcommon/symbols.tssrc/vs/base/common/types.ts · 410 LOCcommon/types.tssrc/vs/base/common/uint.ts · 59 LOCcommon/uint.tssrc/vs/base/common/uri.ts · 754 LOCcommon/uri.tssrc/vs/base/test/common/utils.ts · 107 LOCcommon/utils.tssrc/vs/nls.ts · 244 LOCvs/nls.tssrc/vs/platform/instantiation/common/instantiation.ts · 130 LOCcommon/instantiation.tssrc/vs/platform/notification/common/notification.ts · 491 LOCcommon/notification.tssrc/vs/workbench/common/notifications.ts · 818 LOCcommon/notifications.tscancellation.test|title=CancellationToken None|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/cancellation.test|title=CancellationToken None|occurrence=1cancellation.test|title=…charCode.test|title=CharCode has good values|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/charCode.test|title=CharCode has good values|occurrence=1charCode.test|title=Char…decorators.test|title=Decorators memoize should memoize methods|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/decorators.test|title=Decorators memoize should memoize methods|occurrence=1decorators.test|title=De…lifecycle.test|title=Lifecycle Action bar has broken accessibility #100273|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/lifecycle.test|title=Lifecycle Action bar has broken accessibility #100273|occurrence=1lifecycle.test|title=Lif…lifecycle.test|title=Lifecycle dispose disposable array|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/lifecycle.test|title=Lifecycle dispose disposable array|occurrence=1lifecycle.test|title=Lif…lifecycle.test|title=No Leakage Utilities ensureNoDisposablesAreLeakedInTest Basic Test|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/lifecycle.test|title=No Leakage Utilities ensureNoDisposablesAreLeakedInTest Basic Test|occurrence=1lifecycle.test|title=No …path.test|title=Paths (Node Implementation) path|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/path.test|title=Paths (Node Implementation) path|occurrence=1path.test|title=Paths (N…strings.test|title=Strings trimWhitespace|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/strings.test|title=Strings trimWhitespace|occurrence=1strings.test|title=Strin…uri.test|title=URI File paths containing apostrophes break URI parsing and cannot be opened #276075|occurrence=1 · introduced test · mocha: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=1uri.test|title=URI File …uri.test|title=URI URI#file, win-speciale|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/uri.test|title=URI URI#file, win-speciale|occurrence=1uri.test|title=URI URI#f…languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication creates new entry when none exists|occurrence=1 · introduced test · mocha: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=1languageStatusDedupe.tes…languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication disposes entries no longer in model|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/languageStatus/test/common/languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication disposes entries no longer in model|occurrence=1languageStatusDedupe.tes…languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication duplicate IDs with existing entry - fixed version reuses existing|occurrence=1 · introduced test · mocha: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=1languageStatusDedupe.tes…languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication duplicate status IDs - buggy version leaks entry|occurrence=1 · introduced test · mocha: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=1languageStatusDedupe.tes…languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication duplicate status IDs - fixed version reuses entry from current update|occurrence=1 · introduced test · mocha: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=1languageStatusDedupe.tes…languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication mixed unique and duplicate IDs|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/contrib/languageStatus/test/common/languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication mixed unique and duplicate IDs|occurrence=1languageStatusDedupe.tes…languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication reuses existing entry from previous update|occurrence=1 · introduced test · mocha: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=1languageStatusDedupe.tes…notifications.test|title=Notifications Model|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/workbench/test/common/notifications.test|title=Notifications Model|occurrence=1notifications.test|title…Focused concept · notifications.ts ×23 · 137 introduced LOCnotifications.ts ×23

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

2 files ranked by introduced lines: 137 introduced LOC across 24 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/workbench/common/notifications.ts 135 introduced LOC · 23 ranges

Open complete file

122
123 constructor(private readonly item: INotificationViewItem, private readonly onClose: (item: INotificationViewItem) => void) {
124 > super(); notifications.ts
125 >
126 > this.registerListeners();
127 > }
128
129 private registerListeners(): void {
131 > // Visibility
132 > this._register(this.item.onDidChangeVisibility(visible => this._onDidChangeVisibility.fire(visible)));
133 >
134 > // Closing
135 > Event.once(this.item.onDidClose)(() => {
136 > this._onDidClose.fire();
137 >
138 > this.dispose();
139 > });
140 > }
141
142 get progress(): INotificationProgress {
143 > return this.item.progress; notifications.ts
144 > }
145
146 updateSeverity(severity: Severity): void {
147 > this.item.updateSeverity(severity); notifications.ts
148 > }
149
150 updateMessage(message: NotificationMessage): void {
151 > this.item.updateMessage(message); notifications.ts
152 > }
153
154 updateActions(actions?: INotificationActions): void {
155 > this.item.updateActions(actions); notifications.ts
156 > }
157
158 close(): void {
159 > this.onClose(this.item); notifications.ts
160 >
161 > this.dispose();
162 > }
163 }
164
169
170 export class NotificationsModel extends Disposable implements INotificationsModel {
172 > private static readonly NO_OP_NOTIFICATION = new NoOpNotification();
173 >
174 > private readonly _onDidChangeNotification = this._register(new Emitter<INotificationChangeEvent>());
175 > readonly onDidChangeNotification = this._onDidChangeNotification.event;
176 >
177 > private readonly _onDidChangeStatusMessage = this._register(new Emitter<IStatusMessageChangeEvent>());
178 > readonly onDidChangeStatusMessage = this._onDidChangeStatusMessage.event;
179 >
180 > private readonly _onDidChangeFilter = this._register(new Emitter<Partial<INotificationsFilter>>());
181 > readonly onDidChangeFilter = this._onDidChangeFilter.event;
182 >
183 > private readonly _notifications: INotificationViewItem[] = [];
184 > get notifications(): INotificationViewItem[] { return this._notifications; }
185 >
186 > private _statusMessage: IStatusMessageViewItem | undefined;
187 > get statusMessage(): IStatusMessageViewItem | undefined { return this._statusMessage; }
188 >
189 > private readonly filter = {
190 > global: NotificationsFilter.OFF,
191 > sources: new Map<string, NotificationsFilter>()
192 > };
193
194 setFilter(filter: Partial<INotificationsFilter>): void {
214
215 addNotification(notification: INotification): INotificationHandle {
216 > const item = this.createViewItem(notification); notifications.ts
217 > if (!item) {
218 return NotificationsModel.NO_OP_NOTIFICATION; // return early if this is a no-op
219 }
221 > // Deduplicate
222 > const duplicate = this.findNotification(item);
223 > duplicate?.close();
224 >
225 > // Add to list as first entry
226 > this._notifications.splice(0, 0, item);
227 >
228 > // Events
229 > this._onDidChangeNotification.fire({ item, index: 0, kind: NotificationChangeType.ADD });
230 >
231 > // Wrap into handle
232 > return new NotificationHandle(item, item => this.onClose(item));
233 > }
234
235 private onClose(item: INotificationViewItem): void {
236 > const liveItem = this.findNotification(item); notifications.ts
237 > if (liveItem && liveItem !== item) {
238 > liveItem.close(); // item could have been replaced with another one, make sure to close the live item
239 > } else {
240 > item.close(); // otherwise just close the item that was passed in
241 > }
242 > }
243
244 private findNotification(item: INotificationViewItem): INotificationViewItem | undefined {
245 > return this._notifications.find(notification => notification.equals(item)); notifications.ts
246 > }
247
248 private createViewItem(notification: INotification): INotificationViewItem | undefined {
249 > const item = NotificationViewItem.create(notification, this.filter); notifications.ts
250 > if (!item) {
251 return undefined;
252 }
254 > // Item Events
255 > const fireNotificationChangeEvent = (kind: NotificationChangeType, detail?: NotificationViewItemContentChangeKind) => {
256 > const index = this._notifications.indexOf(item);
257 > if (index >= 0) {
258 > this._onDidChangeNotification.fire({ item, index, kind, detail });
259 > }
260 > };
261 >
262 > const itemExpansionChangeListener = item.onDidChangeExpansion(() => fireNotificationChangeEvent(NotificationChangeType.EXPAND_COLLAPSE));
263 > const itemContentChangeListener = item.onDidChangeContent(e => fireNotificationChangeEvent(NotificationChangeType.CHANGE, e.kind));
264 >
265 > Event.once(item.onDidClose)(() => {
266 > itemExpansionChangeListener.dispose();
267 > itemContentChangeListener.dispose();
268 >
269 > const index = this._notifications.indexOf(item);
270 > if (index >= 0) {
271 > this._notifications.splice(index, 1);
272 > this._onDidChangeNotification.fire({ item, index, kind: NotificationChangeType.REMOVE });
273 > }
274 > });
275 >
276 > return item;
277 > }
278
279 showStatusMessage(message: NotificationMessage, options?: IStatusMessageOptions): IStatusHandle {
280 > const item = StatusMessageViewItem.create(message, options); notifications.ts
281 > if (!item) {
282 return { close: () => { } };
283 }
285 > this._statusMessage = item;
286 > this._onDidChangeStatusMessage.fire({ kind: StatusMessageChangeType.ADD, item });
287 >
288 > return {
289 > close: () => {
290 > if (this._statusMessage === item) {
291 > this._statusMessage = undefined;
292 > this._onDidChangeStatusMessage.fire({ kind: StatusMessageChangeType.REMOVE, item });
293 > }
294 > }
295 > };
296 > }
297 }
298
581
582 get severity(): Severity {
583 > return this._severity; notifications.ts
584 > }
585
586 get sticky(): boolean {
654 return;
655 }
657 > this._severity = severity;
658 > this._onDidChangeContent.fire({ kind: NotificationViewItemContentChangeKind.SEVERITY });
659 }
660
719 equals(other: INotificationViewItem): boolean {
720 if (this.hasProgress || other.hasProgress) {
721 > return false; notifications.ts
722 > }
723
724 if (typeof this.id === 'string' || typeof other.id === 'string') {
778
779 static create(notification: NotificationMessage, options?: IStatusMessageOptions): IStatusMessageViewItem | undefined {
780 > if (!notification || isCancellationError(notification)) { notifications.ts
781 return undefined; // we need a message to show
782 }
784 > let message: string | undefined;
785 > if (notification instanceof Error) {
786 message = toErrorMessage(notification, false);
787 > } else if (typeof notification === 'string') { notifications.ts
788 > message = notification;
789 > }
790 >
791 > if (!message) {
792 return undefined; // we need a message to show
793 }
795 > return { message, options };
796 > }
797 }
798
src/vs/base/common/linkedText.ts 2 introduced LOC · 1 range

Open complete file

20 @memoize
21 toString(): string {
22 > return this.nodes.map(node => typeof node === 'string' ? node : node.label).join(''); linkedText.ts
23 > }
24 }
25