Skip to content

Commit ba4d436

Browse files
speblbenmcmorran
andauthored
enable trusted markdown based on copilot hover setting
avoids hard coding true for security preference Co-authored-by: Ben McMorran <[email protected]>
1 parent 3893c20 commit ba4d436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extension/src/LanguageServer/Providers/CopilotHoverProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class CopilotHoverProvider implements vscode.HoverProvider {
6767
const commandString = "$(sparkle) [" + localize("generate.copilot.description", "Generate Copilot summary") + "](command:C_Cpp.ShowCopilotHover \"" + localize("copilot.disclaimer", "AI-generated content may be incorrect.") + "\")";
6868
const commandMarkdown = new vscode.MarkdownString(commandString);
6969
commandMarkdown.supportThemeIcons = true;
70-
commandMarkdown.isTrusted = true;
70+
commandMarkdown.isTrusted = { enabledCommands: ["C_Cpp.ShowCopilotHover"] };
7171
return new vscode.Hover(commandMarkdown);
7272
}
7373

0 commit comments

Comments
 (0)