From 514fe3a523a87afd493bcb0802cf5ac57d3b4270 Mon Sep 17 00:00:00 2001 From: shikokuchuo <53399081+shikokuchuo@users.noreply.github.com> Date: Tue, 20 Jan 2026 18:31:04 +0000 Subject: [PATCH] Fix paste handling to prevent Monaco snippet expansion artifacts --- hub-client/src/components/Editor.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hub-client/src/components/Editor.tsx b/hub-client/src/components/Editor.tsx index 235714695..63c05b998 100644 --- a/hub-client/src/components/Editor.tsx +++ b/hub-client/src/components/Editor.tsx @@ -961,6 +961,9 @@ export default function Editor({ project, files, fileContents, onDisconnect, onC wordWrap: 'on', padding: { top: 16 }, scrollBeyondLastLine: false, + // Disable paste-as to prevent snippet expansion (e.g., URLs from browser + // address bar being pasted with $0 appended). See quarto-dev/kyoto#3. + pasteAs: { enabled: false }, }} />