We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f840784 commit 5884aa4Copy full SHA for 5884aa4
src/vs/workbench/contrib/chat/browser/chatWidget.ts
@@ -403,7 +403,7 @@ export class ChatWidget extends Disposable implements IChatWidget {
403
404
this._register(this.inputPart.onDidLoadInputState(state => {
405
this.contribs.forEach(c => {
406
- if (c.setInputState && state[c.id]) {
+ if (c.setInputState && typeof state === 'object' && state?.[c.id]) {
407
c.setInputState(state[c.id]);
408
}
409
});
0 commit comments