@@ -17,7 +17,6 @@ import { IInstantiationService } from '../../../../../platform/instantiation/com
17
17
import { ILogService } from '../../../../../platform/log/common/log.js' ;
18
18
import { IOpenerService } from '../../../../../platform/opener/common/opener.js' ;
19
19
import { defaultButtonStyles } from '../../../../../platform/theme/browser/defaultStyles.js' ;
20
- import { spinningLoading } from '../../../../../platform/theme/common/iconRegistry.js' ;
21
20
import { ChatAgentLocation } from '../../common/chatAgents.js' ;
22
21
import { chatViewsWelcomeRegistry , IChatViewsWelcomeDescriptor } from './chatViewsWelcome.js' ;
23
22
@@ -89,7 +88,7 @@ export class ChatViewWelcomeController extends Disposable {
89
88
icon : enabledDescriptor . icon ,
90
89
title : enabledDescriptor . title ,
91
90
message : enabledDescriptor . content ,
92
- progress : enabledDescriptor . progress
91
+ disableFirstLinkToButton : enabledDescriptor . disableFirstLinkToButton ,
93
92
} ;
94
93
const welcomeView = this . renderDisposables . add ( this . instantiationService . createInstance ( ChatViewWelcomePart , content , { firstLinkToButton : true , location : this . location } ) ) ;
95
94
this . element ! . appendChild ( welcomeView . element ) ;
@@ -104,7 +103,7 @@ export interface IChatViewWelcomeContent {
104
103
icon ?: ThemeIcon ;
105
104
title : string ;
106
105
message : IMarkdownString ;
107
- progress ?: string ;
106
+ disableFirstLinkToButton ?: boolean ;
108
107
tips ?: IMarkdownString ;
109
108
}
110
109
@@ -144,7 +143,7 @@ export class ChatViewWelcomePart extends Disposable {
144
143
title . textContent = content . title ;
145
144
const renderer = this . instantiationService . createInstance ( MarkdownRenderer , { } ) ;
146
145
const messageResult = this . _register ( renderer . render ( content . message ) ) ;
147
- const firstLink = ( options ?. firstLinkToButton && ! content . progress ) ? messageResult . element . querySelector ( 'a' ) : undefined ;
146
+ const firstLink = options ?. firstLinkToButton && ! content . disableFirstLinkToButton ? messageResult . element . querySelector ( 'a' ) : undefined ;
148
147
if ( firstLink ) {
149
148
const target = firstLink . getAttribute ( 'data-href' ) ;
150
149
const button = this . _register ( new Button ( firstLink . parentElement ! , defaultButtonStyles ) ) ;
@@ -159,14 +158,6 @@ export class ChatViewWelcomePart extends Disposable {
159
158
160
159
dom . append ( message , messageResult . element ) ;
161
160
162
- if ( content . progress ) {
163
- const progress = dom . append ( this . element , $ ( '.chat-welcome-view-progress' ) ) ;
164
- progress . appendChild ( renderIcon ( spinningLoading ) ) ;
165
-
166
- const progressLabel = dom . append ( progress , $ ( 'span' ) ) ;
167
- progressLabel . textContent = content . progress ;
168
- }
169
-
170
161
if ( content . tips ) {
171
162
const tips = dom . append ( this . element , $ ( '.chat-welcome-view-tips' ) ) ;
172
163
const tipsResult = this . _register ( renderer . render ( content . tips ) ) ;
0 commit comments