mirror of
https://github.com/coder/code-server.git
synced 2026-05-09 05:47:26 +02:00
chore(vscode): update to 1.55.2
This commit is contained in:
@@ -280,10 +280,12 @@ export interface INotificationViewItem {
|
||||
readonly silent: boolean;
|
||||
readonly message: INotificationMessage;
|
||||
readonly source: string | undefined;
|
||||
readonly sourceId: string | undefined;
|
||||
readonly actions: INotificationActions | undefined;
|
||||
readonly progress: INotificationViewItemProgress;
|
||||
|
||||
readonly expanded: boolean;
|
||||
readonly visible: boolean;
|
||||
readonly canCollapse: boolean;
|
||||
readonly hasProgress: boolean;
|
||||
|
||||
@@ -502,7 +504,7 @@ export class NotificationViewItem extends Disposable implements INotificationVie
|
||||
private _sticky: boolean | undefined,
|
||||
private _silent: boolean | undefined,
|
||||
private _message: INotificationMessage,
|
||||
private _source: string | undefined,
|
||||
private _source: string | { label: string, id: string } | undefined,
|
||||
progress: INotificationProgressProperties | undefined,
|
||||
actions?: INotificationActions
|
||||
) {
|
||||
@@ -599,13 +601,21 @@ export class NotificationViewItem extends Disposable implements INotificationVie
|
||||
}
|
||||
|
||||
get source(): string | undefined {
|
||||
return this._source;
|
||||
return typeof this._source === 'string' ? this._source : (this._source ? this._source.label : undefined);
|
||||
}
|
||||
|
||||
get sourceId(): string | undefined {
|
||||
return (this._source && typeof this._source !== 'string' && 'id' in this._source) ? this._source.id : undefined;
|
||||
}
|
||||
|
||||
get actions(): INotificationActions | undefined {
|
||||
return this._actions;
|
||||
}
|
||||
|
||||
get visible(): boolean {
|
||||
return this._visible;
|
||||
}
|
||||
|
||||
updateSeverity(severity: Severity): void {
|
||||
this._severity = severity;
|
||||
this._onDidChangeContent.fire({ kind: NotificationViewItemContentChangeKind.SEVERITY });
|
||||
|
||||
Reference in New Issue
Block a user