File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
src/vs/workbench/contrib/chat Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,8 @@ export class ChatWidget extends Disposable implements IChatWidget {
174
174
diffIdentityProvider : {
175
175
getId : ( element ) => {
176
176
return ( ( isResponseVM ( element ) || isRequestVM ( element ) ) ? element . dataId : element . id ) +
177
+ // TODO? We can give the welcome message a proper VM or get rid of the rest of the VMs
178
+ ( ( isWelcomeVM ( element ) && ! this . viewModel ?. isInitialized ) ? '_initializing' : '' ) +
177
179
// Ensure re-rendering an element once slash commands are loaded, so the colorization can be applied.
178
180
`${ ( isRequestVM ( element ) || isWelcomeVM ( element ) ) && ! ! this . lastSlashCommands ? '_scLoaded' : '' } ` +
179
181
// If a response is in the process of progressive rendering, we need to ensure that it will
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ export function isWelcomeVM(item: unknown): item is IInteractiveWelcomeMessageVi
27
27
}
28
28
29
29
export interface IChatViewModel {
30
+ readonly isInitialized : boolean ;
30
31
readonly providerId : string ;
31
32
readonly sessionId : string ;
32
33
readonly onDidDisposeModel : Event < void > ;
@@ -108,6 +109,10 @@ export class ChatViewModel extends Disposable implements IChatViewModel {
108
109
return this . _model . providerId ;
109
110
}
110
111
112
+ get isInitialized ( ) {
113
+ return this . _model . isInitialized ;
114
+ }
115
+
111
116
constructor (
112
117
private readonly _model : IChatModel ,
113
118
@IInstantiationService private readonly instantiationService : IInstantiationService ,
You can’t perform that action at this time.
0 commit comments