From 58ca888078af15917c2e5bc87758f5b3c30eb2de Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adri=C3=A1n=20Montes=20Linares?=
<128893712+aMonteSl@users.noreply.github.com>
Date: Fri, 4 Dec 2026 22:51:13 +0000
Subject: [PATCH 01/67] ci(ide): bench traces chosen runs (--trace-runs) and
prints the page's own step times; Tauri jobs trace a warm run (#480)
---
.github/workflows/ide-bench.yml | 4 ++--
apps/ide/scripts/bench.mjs | 11 ++++++-----
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/ide-bench.yml b/.github/workflows/ide-bench.yml
index 66dc48d5..fc45fae7 100644
--- a/.github/workflows/ide-bench.yml
+++ b/.github/workflows/ide-bench.yml
@@ -155,7 +155,7 @@ jobs:
- name: Bench (Linux, virtual display)
if: runner.os == 'Linux'
shell: bash
- run: CODEXR_NODE="$(node -p process.execPath)" xvfb-run -a -s "-screen 0 1920x1080x24" dbus-run-session -- node apps/ide/scripts/bench.mjs --label=tauri --runs=6 --idle-seconds=20 --out=apps/ide/bench-tauri-${{ runner.os }}.json -- apps/ide/src-tauri/target/release/codexr-ide
+ run: CODEXR_IPC_TRACE=1 CODEXR_NODE="$(node -p process.execPath)" xvfb-run -a -s "-screen 0 1920x1080x24" dbus-run-session -- node apps/ide/scripts/bench.mjs --label=tauri --trace-runs=0,2 --runs=6 --idle-seconds=20 --out=apps/ide/bench-tauri-${{ runner.os }}.json -- apps/ide/src-tauri/target/release/codexr-ide
- name: Bench
if: runner.os != 'Linux'
@@ -163,7 +163,7 @@ jobs:
run: |
exe=apps/ide/src-tauri/target/release/codexr-ide
if [ "$RUNNER_OS" = "Windows" ]; then exe="$exe.exe"; fi
- CODEXR_NODE="$(node -p process.execPath)" node apps/ide/scripts/bench.mjs --label=tauri --runs=6 --idle-seconds=20 --out=apps/ide/bench-tauri-${{ runner.os }}.json -- "$exe"
+ CODEXR_IPC_TRACE=1 CODEXR_NODE="$(node -p process.execPath)" node apps/ide/scripts/bench.mjs --label=tauri --trace-runs=0,2 --runs=6 --idle-seconds=20 --out=apps/ide/bench-tauri-${{ runner.os }}.json -- "$exe"
- name: Summary
if: always()
diff --git a/apps/ide/scripts/bench.mjs b/apps/ide/scripts/bench.mjs
index f71415ad..faf4fa01 100644
--- a/apps/ide/scripts/bench.mjs
+++ b/apps/ide/scripts/bench.mjs
@@ -2,7 +2,7 @@
// so the same numbers can be taken for any desktop shell (Electron today, the next one after).
//
// Usage:
-// node scripts/bench.mjs [--runs=5] [--idle-seconds=20] [--folder=
] [--out=] [--label=] [--trace-first] -- [args...]
+// node scripts/bench.mjs [--runs=5] [--idle-seconds=20] [--folder=] [--out=] [--label=] [--trace-runs=0,1] -- [args...]
// With no command it launches the built Electron IDE (npm run build first).
//
// One run: spawn the app with --codexr-bench --folder=; the renderer's driver
@@ -36,8 +36,9 @@ const runs = Number(options.runs ?? 5);
const idleSeconds = Number(options['idle-seconds'] ?? 20);
const folder = path.resolve(options.folder ?? path.join(IDE_ROOT, '..', '..'));
const label = options.label ?? 'electron';
-// --trace-first: the first run's stderr, each line with its time since launch (where a slow start goes).
-const traceFirst = options['trace-first'] !== undefined;
+// --trace-runs=0,2 (or --trace-first for run 0): those runs' stderr, each line with its
+// time since launch (where a slow start goes; with CODEXR_IPC_TRACE=1 the Tauri core adds its own steps).
+const traceRuns = new Set(String(options['trace-runs'] ?? (options['trace-first'] !== undefined ? '0' : '')).split(',').filter((n) => n !== '').map(Number));
let command = separator === -1 ? [] : argv.slice(separator + 1);
// A relative path to the app (a CI build) is resolved here: Windows cannot spawn one with forward slashes.
if (command.length > 0 && /[\\/]/.test(command[0]) && fs.existsSync(command[0])) {
@@ -158,7 +159,7 @@ async function oneRun(index) {
child.stderr.on('data', (chunk) => {
const lines = (stderrPartial + chunk).split(/\r?\n/);
stderrPartial = lines.pop() ?? '';
- if (traceFirst && index === 0) {
+ if (traceRuns.has(index)) {
const at = Math.round(performance.now() - started);
for (const line of lines) {
if (line.trim() !== '') {
@@ -203,7 +204,7 @@ async function oneRun(index) {
idleCpuPct: Math.round(idleCpuPct * 100) / 100,
byProcess: settled.map((p) => ({ name: p.name, pssMB: mb(p.pss), rssMB: mb(p.rss), privateMB: mb(p.priv) })),
};
- console.error(`[bench] run ${index}: ready ${run.readyMs} ms, ${run.processes} processes, PSS ${run.pssMB} MB, RSS ${run.rssMB} MB, private ${run.privateMB} MB, idle CPU ${run.idleCpuPct}%${report.failures.length ? `, failures: ${report.failures.join('; ')}` : ''}`);
+ console.error(`[bench] run ${index}: ready ${run.readyMs} ms, ${run.processes} processes, PSS ${run.pssMB} MB, RSS ${run.rssMB} MB, private ${run.privateMB} MB, idle CPU ${run.idleCpuPct}%, page: explorer/editor/terminal at ${Math.round(report.workbenchReadyMs)}/${Math.round(report.editorReadyMs)}/${Math.round(report.terminalReadyMs)} ms${report.failures.length ? `, failures: ${report.failures.join('; ')}` : ''}`);
return run;
}
From 2b3f2129d724c4f9adc29277b732fd785d357eda Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adri=C3=A1n=20Montes=20Linares?=
<128893712+aMonteSl@users.noreply.github.com>
Date: Fri, 4 Dec 2026 23:17:36 +0000
Subject: [PATCH 02/67] IDE (Tauri): the main window takes the focus when
shown, as on Electron; bench reports page visibility (#480)
---
apps/ide/scripts/bench.mjs | 2 +-
apps/ide/src-tauri/src/host.rs | 4 ++++
apps/ide/src/renderer/bench/benchDriver.ts | 4 +++-
apps/ide/src/shared/api.ts | 2 ++
4 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/apps/ide/scripts/bench.mjs b/apps/ide/scripts/bench.mjs
index faf4fa01..9a444909 100644
--- a/apps/ide/scripts/bench.mjs
+++ b/apps/ide/scripts/bench.mjs
@@ -204,7 +204,7 @@ async function oneRun(index) {
idleCpuPct: Math.round(idleCpuPct * 100) / 100,
byProcess: settled.map((p) => ({ name: p.name, pssMB: mb(p.pss), rssMB: mb(p.rss), privateMB: mb(p.priv) })),
};
- console.error(`[bench] run ${index}: ready ${run.readyMs} ms, ${run.processes} processes, PSS ${run.pssMB} MB, RSS ${run.rssMB} MB, private ${run.privateMB} MB, idle CPU ${run.idleCpuPct}%, page: explorer/editor/terminal at ${Math.round(report.workbenchReadyMs)}/${Math.round(report.editorReadyMs)}/${Math.round(report.terminalReadyMs)} ms${report.failures.length ? `, failures: ${report.failures.join('; ')}` : ''}`);
+ console.error(`[bench] run ${index}: ready ${run.readyMs} ms, ${run.processes} processes, PSS ${run.pssMB} MB, RSS ${run.rssMB} MB, private ${run.privateMB} MB, idle CPU ${run.idleCpuPct}%, page: explorer/editor/terminal at ${Math.round(report.workbenchReadyMs)}/${Math.round(report.editorReadyMs)}/${Math.round(report.terminalReadyMs)} ms${report.visibility ? ` (${report.visibility})` : ''}${report.failures.length ? `, failures: ${report.failures.join('; ')}` : ''}`);
return run;
}
diff --git a/apps/ide/src-tauri/src/host.rs b/apps/ide/src-tauri/src/host.rs
index 2808361a..5dfd9552 100644
--- a/apps/ide/src-tauri/src/host.rs
+++ b/apps/ide/src-tauri/src/host.rs
@@ -328,6 +328,10 @@ fn build_window(app: &AppHandle, shell: &Arc, sidecar: &Arc, spe
loads.notify("window.event", json!({ "window": load_label, "event": "loaded", "url": payload.url().as_str() }));
if show && !webview.is_visible().unwrap_or(true) {
let _ = webview.show();
+ // As Electron's show(): the window comes to the front and takes the focus. On
+ // macOS show() alone orders it in without activating the app, and WebKit then
+ // treats the page as in the background (its timers throttled).
+ let _ = webview.set_focus();
}
}
});
diff --git a/apps/ide/src/renderer/bench/benchDriver.ts b/apps/ide/src/renderer/bench/benchDriver.ts
index c9146da2..4f33fc2b 100644
--- a/apps/ide/src/renderer/bench/benchDriver.ts
+++ b/apps/ide/src/renderer/bench/benchDriver.ts
@@ -26,6 +26,8 @@ export function startBenchIfRequested(hooks: BenchHooks): void {
async function runBench(hooks: BenchHooks): Promise {
const failures: string[] = [];
+ const visibility = (): string => `${document.visibilityState}${document.hasFocus() ? '+focus' : ''}`;
+ const visibleAtStart = visibility();
const step = async (name: string, ready: () => boolean): Promise => {
if (await waitFor(ready)) {
return performance.now();
@@ -43,7 +45,7 @@ async function runBench(hooks: BenchHooks): Promise {
hooks.toggleTerminal();
const terminalReadyMs = await step('terminal', () => [...document.querySelectorAll('.terminal-host:not([hidden]) .xterm-rows > div')]
.some((row) => (row.textContent ?? '').trim().length > 0));
- const report: BenchReport = { workbenchReadyMs, editorReadyMs, terminalReadyMs, failures };
+ const report: BenchReport = { workbenchReadyMs, editorReadyMs, terminalReadyMs, failures, visibility: `${visibleAtStart} -> ${visibility()}` };
await hooks.api.app.benchReport(report);
}
diff --git a/apps/ide/src/shared/api.ts b/apps/ide/src/shared/api.ts
index 75880741..9f3d6ee4 100644
--- a/apps/ide/src/shared/api.ts
+++ b/apps/ide/src/shared/api.ts
@@ -38,6 +38,8 @@ export interface BenchReport {
/** The terminal panel ran a command and drew its output. */
readonly terminalReadyMs: number;
readonly failures: readonly string[];
+ /** `document.visibilityState` and `document.hasFocus()` when the run started and ended: an engine throttles a page it thinks hidden. */
+ readonly visibility?: string;
}
export interface AppInfo {
From c3e454d205d2859b2963232453e400f948ebedce Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adri=C3=A1n=20Montes=20Linares?=
<128893712+aMonteSl@users.noreply.github.com>
Date: Fri, 4 Dec 2026 23:12:58 +0000
Subject: [PATCH 03/67] IDE (Tauri): extension webviews served by the sidecar,
one origin per webview on the scheme or a loopback port (#484)
Webview origins are no longer hard-wired to codexr-webview://: the main
process names them (webviewRegistry configureWebviewOrigins), the extension
host gets them in its init data (cspSource, asWebviewUri) and the renderer
in each create event (iframe src, postMessage target and origin check).
Electron keeps the scheme, unchanged.
The sidecar answers the core's codexr-webview scheme handler
(webview.resolve) from the same registry, or, on Windows, where WebView2
reaches a custom scheme as one http://.localhost origin, serves
them itself on 127.0.0.1 as http://.localhost:, refusing any Host
that is not a known webview on that port. The workbench's frame-src
follows. CODEXR_WEBVIEW_LOOPBACK=1/0 forces the choice (to try the Windows
path on Linux).
---
apps/ide/src/extensionHost/webviews.ts | 14 +-
.../main/extensions/extensionHostManager.ts | 9 +-
.../src/main/extensions/webviewRegistry.ts | 47 +++-
apps/ide/src/main/security.ts | 7 +-
.../src/renderer/extensions/webviewHost.ts | 20 +-
apps/ide/src/shared/extensionHostProtocol.ts | 4 +-
.../src/shared/extensionWebviewProtocol.ts | 60 ++++-
apps/ide/src/sidecar/index.ts | 8 +-
apps/ide/src/sidecar/tauriHost.ts | 10 +-
apps/ide/src/sidecar/webviews.ts | 102 ++++++++
apps/ide/test/tauriWebviews.test.ts | 219 ++++++++++++++++++
11 files changed, 469 insertions(+), 31 deletions(-)
create mode 100644 apps/ide/src/sidecar/webviews.ts
create mode 100644 apps/ide/test/tauriWebviews.test.ts
diff --git a/apps/ide/src/extensionHost/webviews.ts b/apps/ide/src/extensionHost/webviews.ts
index 4d7cbe6a..8ad182ea 100644
--- a/apps/ide/src/extensionHost/webviews.ts
+++ b/apps/ide/src/extensionHost/webviews.ts
@@ -1,7 +1,7 @@
import crypto from 'node:crypto';
import path from 'node:path';
import { MAIN_METHODS } from '../shared/extensionHostProtocol.ts';
-import { webviewOrigin, webviewResourceUrl, type WebviewHostEvent, type WebviewOptionsData, type WebviewWorkbenchEvent } from '../shared/extensionWebviewProtocol.ts';
+import { parseWebviewOrigins, SCHEME_ORIGINS, webviewOrigin, webviewResourceUrl, type WebviewHostEvent, type WebviewOptionsData, type WebviewOrigins, type WebviewWorkbenchEvent } from '../shared/extensionWebviewProtocol.ts';
import type { ExtensionId } from '../shared/extensions.ts';
import type { ExtensionHost } from './host.ts';
import { CancellationTokenNone, Disposable, EventEmitter, Uri, ViewColumn } from './types.ts';
@@ -11,7 +11,8 @@ import { fromWire, toWire } from './wire.ts';
* #261: extensions' webviews. `window.createWebviewPanel` opens an editor tab,
* `registerWebviewViewProvider` fills a contributed view of `type: "webview"`.
* The extension's objects live here; the HTML goes to the main process, which
- * serves it on the webview's own origin (`codexr-webview:///`), and the
+ * serves it on the webview's own origin (`codexr-webview:///`, or
+ * `http://.localhost:/` on Tauri for Windows, #484), and the
* workbench shows it in a sandboxed frame. Messages travel both ways as
* structured clones (`Uri`s as tagged objects, like command arguments).
*/
@@ -41,7 +42,7 @@ class WebviewImpl {
this.id = id;
this.extensionLocation = extensionLocation;
this.optionsValue = options;
- this.cspSource = webviewOrigin(id);
+ this.cspSource = webviewOrigin(id, owner.origins());
}
get html(): string {
@@ -106,7 +107,7 @@ class WebviewImpl {
if (!(resource instanceof Uri) || resource.scheme !== 'file') {
return resource;
}
- return Uri.parse(webviewResourceUrl(this.id, resource.path));
+ return Uri.parse(webviewResourceUrl(this.id, resource.path, this.owner.origins()));
}
}
@@ -235,6 +236,11 @@ export class Webviews {
return this.host.data?.workspaceFolder ?? null;
}
+ /** How the shell spells webview origins (#484), given at init. */
+ origins(): WebviewOrigins {
+ return parseWebviewOrigins(this.host.data?.webviewOrigins) ?? SCHEME_ORIGINS;
+ }
+
private location(extensionId: ExtensionId): string {
return this.host.records.get(extensionId)?.description.location ?? '';
}
diff --git a/apps/ide/src/main/extensions/extensionHostManager.ts b/apps/ide/src/main/extensions/extensionHostManager.ts
index 867ba785..881269b5 100644
--- a/apps/ide/src/main/extensions/extensionHostManager.ts
+++ b/apps/ide/src/main/extensions/extensionHostManager.ts
@@ -20,8 +20,8 @@ import { addFolderChangeListener, workspaceOrNull } from '../workspace/workspace
import { matchGlob } from '../../extensionHost/glob.ts';
import { parseViewRequest } from '../../shared/extensionViewsProtocol.ts';
import { DocumentMirror, FolderPaths } from './documentMirror.ts';
-import { commandUriAllowed, parseWebviewHostEvent, parseWebviewWorkbenchEvent } from '../../shared/extensionWebviewProtocol.ts';
-import { webviewServer } from './webviewRegistry.ts';
+import { commandUriAllowed, parseWebviewHostEvent, parseWebviewWorkbenchEvent, webviewOrigin, type WebviewUiEvent } from '../../shared/extensionWebviewProtocol.ts';
+import { webviewOrigins, webviewServer } from './webviewRegistry.ts';
import { inlineTreeIcons } from './viewIcons.ts';
import { ExtensionSettingsStore } from './extensionSettings.ts';
import type { ActivationSource, ExtensionsService } from './extensionsService.ts';
@@ -230,6 +230,7 @@ export class ExtensionHostManager implements ActivationSource {
version: app.getVersion(),
},
isDevelopment: this.isDevelopment,
+ webviewOrigins: webviewOrigins(),
...(folder ? this.mirror(contents).snapshot(new FolderPaths(folder)) : { documents: [], activeEditor: null }),
};
}
@@ -524,7 +525,9 @@ export class ExtensionHostManager implements ActivationSource {
} else if (webviewServer.options(owner, event.id) === null) {
return;
}
- this.sendUi(contents, { type: 'notify', notification: { kind: 'webview', event } });
+ // #484: the frame's origin depends on the shell (webviewRegistry.ts configureWebviewOrigins).
+ const uiEvent: WebviewUiEvent = event.kind === 'create' ? { ...event, origin: webviewOrigin(event.id, webviewOrigins()) } : event;
+ this.sendUi(contents, { type: 'notify', notification: { kind: 'webview', event: uiEvent } });
});
rpc.handle(MAIN_METHODS.uiNotify, (notification) => this.sendUi(contents, { type: 'notify', notification: notification as UiNotification }));
rpc.handle(MAIN_METHODS.diagnostics, (raw) => {
diff --git a/apps/ide/src/main/extensions/webviewRegistry.ts b/apps/ide/src/main/extensions/webviewRegistry.ts
index a89346ef..5c53c6b4 100644
--- a/apps/ide/src/main/extensions/webviewRegistry.ts
+++ b/apps/ide/src/main/extensions/webviewRegistry.ts
@@ -1,10 +1,12 @@
+import crypto from 'node:crypto';
import fs from 'node:fs';
import path from 'node:path';
-import { isWebviewId, WEBVIEW_SCHEME, webviewResourcePath, type WebviewOptionsData } from '../../shared/extensionWebviewProtocol.ts';
+import { isWebviewId, SCHEME_ORIGINS, webviewIdOfUrl, webviewDocument, webviewResourcePath, type WebviewOptionsData, type WebviewOrigins } from '../../shared/extensionWebviewProtocol.ts';
/**
* #261: what extensions' webviews serve on `codexr-webview:///`, one origin
- * per webview. The page is the extension's HTML with the bootstrap script in
+ * per webview (#484: `http://.localhost:/` on Tauri for Windows,
+ * see `configureWebviewOrigins`). The page is the extension's HTML with the bootstrap script in
* front (`webviewDocument`); `/file/` serves a file only when it lies,
* after resolving links, inside one of the webview's `localResourceRoots`.
* Anything else is a 404. Pure (no Electron), so the rules are unit-tested;
@@ -22,6 +24,17 @@ interface ServedWebview {
const served = new Map();
+/** How this process spells webview origins: the scheme, unless the Tauri sidecar serves them on loopback (#484). */
+let origins: WebviewOrigins = SCHEME_ORIGINS;
+
+export function configureWebviewOrigins(value: WebviewOrigins): void {
+ origins = value;
+}
+
+export function webviewOrigins(): WebviewOrigins {
+ return origins;
+}
+
function realRoots(roots: readonly string[]): string[] {
return roots.flatMap((root) => {
try {
@@ -87,7 +100,7 @@ export const webviewServer = {
}
return ids;
},
- /** What a request is answered with: the page, a file, or nothing (404). */
+ /** What a request is answered with: the page, a file, or nothing (404). The URL must be on this process's webview origins. */
resolve(url: string, windows = process.platform === 'win32'): { kind: 'page'; html: string } | { kind: 'file'; file: string } | null {
let parsed: URL;
try {
@@ -95,7 +108,8 @@ export const webviewServer = {
} catch {
return null;
}
- const entry = parsed.protocol === `${WEBVIEW_SCHEME}:` ? served.get(parsed.hostname) : undefined;
+ const id = webviewIdOfUrl(parsed, origins);
+ const entry = id === null ? undefined : served.get(id);
if (!entry) {
return null;
}
@@ -119,3 +133,28 @@ export const webviewServer = {
},
};
+
+/**
+ * #484: the status, headers and content of the answer to a request, for the
+ * Tauri build, which answers outside Electron's `protocol.handle` (the core's
+ * scheme handler, or the sidecar's loopback server). The same headers as
+ * webviewServer.ts. `file` is a path the server reads itself.
+ */
+export interface WebviewHttpAnswer {
+ readonly status: number;
+ readonly headers: Readonly>;
+ readonly body?: string;
+ readonly file?: string;
+}
+
+export function webviewHttpAnswer(method: string, url: string, windows = process.platform === 'win32'): WebviewHttpAnswer {
+ const answer = method === 'GET' || method === 'HEAD' ? webviewServer.resolve(url, windows) : null;
+ if (!answer) {
+ return { status: 404, headers: { 'content-type': 'text/plain', 'x-content-type-options': 'nosniff' }, body: 'Not found' };
+ }
+ if (answer.kind === 'page') {
+ return { status: 200, headers: { 'content-type': 'text/html; charset=utf-8', 'cache-control': 'no-store', 'x-content-type-options': 'nosniff' }, body: webviewDocument(answer.html, crypto.randomBytes(16).toString('base64')) };
+ }
+ const type = WEBVIEW_CONTENT_TYPES[path.extname(answer.file).toLowerCase()] ?? 'application/octet-stream';
+ return { status: 200, headers: { 'content-type': type, 'cache-control': 'no-cache', 'x-content-type-options': 'nosniff', 'access-control-allow-origin': '*' }, file: answer.file };
+}
diff --git a/apps/ide/src/main/security.ts b/apps/ide/src/main/security.ts
index ebcfee50..3829a65c 100644
--- a/apps/ide/src/main/security.ts
+++ b/apps/ide/src/main/security.ts
@@ -87,6 +87,11 @@ export interface CspOptions {
* which its `invoke` reaches with fetch. Electron passes none.
*/
readonly extraConnectSources?: readonly string[];
+ /**
+ * #484: where extensions' webviews are served (`webviewFrameSources`):
+ * `codexr-webview:` unless given (the Tauri build on Windows serves them on loopback).
+ */
+ readonly frameSources?: readonly string[];
}
/**
@@ -120,7 +125,7 @@ export function buildContentSecurityPolicy(options: CspOptions = {}): string {
['form-action', ["'none'"]],
['frame-ancestors', ["'none'"]],
// #261: extensions' webviews only, each in a sandboxed frame on its own origin.
- ['frame-src', ['codexr-webview:']],
+ ['frame-src', [...(options.frameSources ?? ['codexr-webview:'])]],
['object-src', ["'none'"]],
];
return directives.map(([name, values]) => `${name} ${values.join(' ')}`).join('; ');
diff --git a/apps/ide/src/renderer/extensions/webviewHost.ts b/apps/ide/src/renderer/extensions/webviewHost.ts
index f3f949b2..6cf70c86 100644
--- a/apps/ide/src/renderer/extensions/webviewHost.ts
+++ b/apps/ide/src/renderer/extensions/webviewHost.ts
@@ -1,10 +1,12 @@
-import { parseCommandHref, webviewOrigin, type WebviewOptionsData, type WebviewUiEvent, type WebviewWorkbenchEvent } from '../../shared/extensionWebviewProtocol.ts';
+import { parseCommandHref, type WebviewOptionsData, type WebviewUiEvent, type WebviewWorkbenchEvent } from '../../shared/extensionWebviewProtocol.ts';
import { el } from '../dom.ts';
import type { CustomEditorContext, CustomEditorInput, CustomEditorView } from '../editor/customEditor.ts';
/**
* #261: the workbench side of extensions' webviews. Each webview is an
- * `