mirror of
https://github.com/microsoft/vscode.git
synced 2026-10-10 04:30:15 +01:00
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:
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(', ')}`,
|
||||
|
||||
Reference in new issue
Block a user