Skip to content

Commit 5de3dd3

Browse files
authored
Allow vscode.open in chat markdown (microsoft#185386)
1 parent 2cf2110 commit 5de3dd3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/vs/workbench/contrib/chat/browser/chatListRenderer.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,11 @@ export class ChatListItemRenderer extends Disposable implements ITreeRenderer<Ch
396396
const slashCommands = this.delegate.getSlashCommands();
397397
const usedSlashCommand = slashCommands.find(s => markdown.value.startsWith(`/${s.command} `));
398398
const toRender = usedSlashCommand ? markdown.value.slice(usedSlashCommand.command.length + 2) : markdown.value;
399-
markdown = new MarkdownString(toRender);
399+
markdown = new MarkdownString(toRender, {
400+
isTrusted: {
401+
enabledCommands: ['vscode.open']
402+
},
403+
});
400404

401405
const codeblocks: IChatCodeBlockInfo[] = [];
402406
const result = this.renderer.render(markdown, {

0 commit comments

Comments
 (0)