fix(editor): Copy Reference and Paste as Plain Text in the editor's Copy / Paste Special menu (#1333)

The editor's Copy / Paste Special submenu only had Copy Path and Paste from History, so a class's fully qualified name couldn't be copied from the context menu although Copy Reference exists as an action. It now lists Copy Reference, Paste as Plain Text and Paste from History; the file path stays in the editor tab's Copy Path/Reference menu.

Fixes #1261
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-05 01:27:49 +08:00
1 джерело 19a245fa04
коміт 11932a87af
1 file changed
+2 -1
+2 -1
Переглянути файл
@@ -685,7 +685,8 @@ export class EditorController implements SlotHost {
{
label: "Copy / Paste Special",
submenu: [
{ label: "Copy Path", run: () => void navigator.clipboard?.writeText(slot.model.path) },
{ kind: "action", action: "editor.copyReference" },
{ kind: "action", action: "code.pasteAsPlainText" },
{ kind: "action", action: "code.pasteFromHistory" },
],
},