File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed
src/vs/workbench/browser/parts/notifications Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import { AriaRole } from 'vs/base/browser/ui/aria/aria';
21
21
import { NotificationActionRunner } from 'vs/workbench/browser/parts/notifications/notificationsCommands' ;
22
22
23
23
export interface INotificationsListOptions extends IListOptions < INotificationViewItem > {
24
- widgetAriaLabel ?: string ;
24
+ readonly widgetAriaLabel ?: string ;
25
25
}
26
26
27
27
export class NotificationsList extends Disposable {
Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ import { assertIsDefined } from 'vs/base/common/types';
27
27
import { NotificationsToastsVisibleContext } from 'vs/workbench/common/contextkeys' ;
28
28
29
29
interface INotificationToast {
30
- item : INotificationViewItem ;
31
- list : NotificationsList ;
32
- container : HTMLElement ;
33
- toast : HTMLElement ;
30
+ readonly item : INotificationViewItem ;
31
+ readonly list : NotificationsList ;
32
+ readonly container : HTMLElement ;
33
+ readonly toast : HTMLElement ;
34
34
}
35
35
36
36
enum ToastVisibility {
Original file line number Diff line number Diff line change @@ -83,7 +83,10 @@ export class NotificationsListDelegate implements IListVirtualDelegate<INotifica
83
83
private computePreferredHeight ( notification : INotificationViewItem ) : number {
84
84
85
85
// Prepare offset helper depending on toolbar actions count
86
- let actions = 1 ; // close
86
+ let actions = 0 ;
87
+ if ( ! notification . hasProgress ) {
88
+ actions ++ ; // close
89
+ }
87
90
if ( notification . canCollapse ) {
88
91
actions ++ ; // expand/collapse
89
92
}
@@ -132,8 +135,9 @@ export interface INotificationTemplateData {
132
135
}
133
136
134
137
interface IMessageActionHandler {
138
+ readonly toDispose : DisposableStore ;
139
+
135
140
callback : ( href : string ) => void ;
136
- toDispose : DisposableStore ;
137
141
}
138
142
139
143
class NotificationMessageRenderer {
You can’t perform that action at this time.
0 commit comments