File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/vs/workbench/api/common Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -4272,6 +4272,10 @@ export enum ChatResultFeedbackKind {
4272
4272
export class ChatResponseMarkdownPart {
4273
4273
value : vscode . MarkdownString ;
4274
4274
constructor ( value : string | vscode . MarkdownString ) {
4275
+ if ( typeof value !== 'string' && value . isTrusted === true ) {
4276
+ throw new Error ( 'The boolean form of MarkdownString.isTrusted is NOT supported for chat participants.' ) ;
4277
+ }
4278
+
4275
4279
this . value = typeof value === 'string' ? new MarkdownString ( value ) : value ;
4276
4280
}
4277
4281
}
@@ -4284,6 +4288,10 @@ export class ChatResponseMarkdownWithVulnerabilitiesPart {
4284
4288
value : vscode . MarkdownString ;
4285
4289
vulnerabilities : vscode . ChatVulnerability [ ] ;
4286
4290
constructor ( value : string | vscode . MarkdownString , vulnerabilities : vscode . ChatVulnerability [ ] ) {
4291
+ if ( typeof value !== 'string' && value . isTrusted === true ) {
4292
+ throw new Error ( 'The boolean form of MarkdownString.isTrusted is NOT supported for chat participants.' ) ;
4293
+ }
4294
+
4287
4295
this . value = typeof value === 'string' ? new MarkdownString ( value ) : value ;
4288
4296
this . vulnerabilities = vulnerabilities ;
4289
4297
}
You can’t perform that action at this time.
0 commit comments