Configure the Markdown iframe bootstrap

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: edab674c-fabb-4d28-b950-e5c2eb419329
This commit is contained in:
Henning DieterichsandCopilot authored and Henning Dieterichs committed 2026-09-02 20:22:51 +02:00
1 parent 4601a548aa
commit 4e3ccb911c
1 file changed
+1
@@ -252,6 +252,7 @@ class Editor extends Disposable {
providers: this.#createIframeProviders(this.#codeBlockEditorProviders),
scriptNonce,
themeCss: () => `:root { ${document.documentElement.getAttribute('style') ?? ''} }`,
iframeBootstrapUrl: location.href,
onAmbiguous: (language, providers) => this.#vscode.postMessage({
type: 'codeBlockEditorDiagnostic',
message: `Ambiguous providers for ${language}: ${providers.map(provider => provider.id).join(', ')}`,