дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-08 19:02:17 +02:00
feat(vcs): offer Compare With… in the editor and tab menus, and outside the desktop app (#433)
Compare With… was only in the Project view menu and needed the OS file dialog. The editor context menu (with Compare with Clipboard) and the editor tab menu now offer it too, and outside the desktop app (remote development, browser) a browser file picker supplies the file, compared as text. Co-authored-by: a-rookie-of-C-language <[email protected]>
Цей коміт міститься в:
1 джерело
9295a8f78a
коміт
19b96b60a4
4 files changed
+101
-3
No files matched your search
@@ -708,6 +708,12 @@ export class EditorController implements SlotHost {
|
||||
localHistoryMenu(slot.model.path),
|
||||
gitMenu(slot.model.path),
|
||||
{ kind: "separator" },
|
||||
{
|
||||
kind: "action",
|
||||
action: "diff.compareWith",
|
||||
arg: slot.model.path,
|
||||
label: "Compare With…",
|
||||
},
|
||||
{
|
||||
kind: "action",
|
||||
action: "diff.compareWithClipboard",
|
||||
@@ -1598,6 +1604,9 @@ export class EditorController implements SlotHost {
|
||||
localHistoryMenu(path),
|
||||
...(inProject ? [gitMenu(path)] : []),
|
||||
{ kind: "separator" },
|
||||
{ kind: "action", action: "diff.compareWith", arg: path, label: "Compare With…" },
|
||||
{ kind: "action", action: "diff.compareWithClipboard", arg: { path }, label: "Compare with Clipboard" },
|
||||
{ kind: "separator" },
|
||||
{
|
||||
label: "Copy Path/Reference…",
|
||||
submenu: [
|
||||
|
||||
Reference in new issue
Заблокувати користувача