Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

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

l0ng-ai11932a87af32
diff --git a/src/editor/core/controller.ts b/src/editor/core/controller.ts
index fc43c9b1c..2d5bdd45c 100644
--- a/src/editor/core/controller.ts
+++ b/src/editor/core/controller.ts
@@ -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" },
],
},