);
return;
}
- const comparison = { from, to, scope: scope ?? null, repo };
- void call(commands.windowOpenComparison(comparison, windowBackgroundHex())).catch((error) =>
- notifications().notify({ level: "error", title: "Could not open comparison", body: String(error) }),
- );
+ // A closable tab of the Compare tool window (IDEA routes these through
+ // CompareWithLocalDialog.showChanges / GitShowDiffWithBranchPanel.showAsTab).
+ showComparisonTab(from, to, scope, repo);
}
export interface Revision {
@@ -1083,7 +1081,7 @@ export interface Revision {
label: string;
}
-interface ScopedComparison {
+export interface ScopedComparison {
paths: string[];
repositories: string[] | null;
}
diff --git a/src/platform/locales/text/en.json b/src/platform/locales/text/en.json
index 76f1f6d023..a55bf8596a 100644
--- a/src/platform/locales/text/en.json
+++ b/src/platform/locales/text/en.json
@@ -1029,6 +1029,7 @@
"Astro Language Server needs a TypeScript language-service library. Install typescript@6 in the project or select a TypeScript lib directory in Settings.": "Astro Language Server needs a TypeScript language-service library. Install typescript@6 in the project or select a TypeScript lib directory in Settings.",
"Cannot show current revision": "Cannot show current revision",
"Compare": "Compare",
+ "Comparisons": "Comparisons",
"Compare with Revision…": "Compare with Revision…",
"Revision changes are still loading": "Revision changes are still loading",
"Swap Sides": "Swap Sides",
diff --git a/src/platform/locales/text/es.json b/src/platform/locales/text/es.json
index cbdc754b0e..4d0a94ab16 100644
--- a/src/platform/locales/text/es.json
+++ b/src/platform/locales/text/es.json
@@ -6034,7 +6034,6 @@
"Couldn't apply the suggested change": "No se pudo aplicar el cambio sugerido",
"Couldn't resolve the thread": "No se pudo resolver el hilo",
"Could not close comparison": "No se pudo cerrar la comparación",
- "Could not open comparison": "No se pudo abrir la comparación",
"Could not show diff": "No se pudieron mostrar las diferencias",
"Back to Changed Files": "Volver a Archivos modificados",
"Default (the module's JDK)": "Predeterminado (el JDK del módulo)",
diff --git a/src/platform/locales/text/ko.json b/src/platform/locales/text/ko.json
index 70dad62f7d..a12fd0c68e 100644
--- a/src/platform/locales/text/ko.json
+++ b/src/platform/locales/text/ko.json
@@ -6104,7 +6104,6 @@
"Couldn't apply the suggested change": "제안된 변경 사항을 적용할 수 없습니다",
"Couldn't resolve the thread": "스레드를 해결할 수 없습니다",
"Could not close comparison": "비교를 닫을 수 없습니다",
- "Could not open comparison": "비교를 열 수 없습니다",
"Could not show diff": "Diff를 표시할 수 없습니다",
"Back to Changed Files": "변경된 파일로 돌아가기",
"Default (the module's JDK)": "기본값(모듈의 JDK)",
diff --git a/src/platform/locales/text/pl.json b/src/platform/locales/text/pl.json
index 7efc41deaa..2804725ed1 100644
--- a/src/platform/locales/text/pl.json
+++ b/src/platform/locales/text/pl.json
@@ -5944,7 +5944,6 @@
"Couldn't apply the suggested change": "Nie udało się zastosować sugerowanej zmiany",
"Couldn't resolve the thread": "Nie udało się rozwiązać wątku",
"Could not close comparison": "Nie udało się zamknąć porównania",
- "Could not open comparison": "Nie udało się otworzyć porównania",
"Could not show diff": "Nie udało się wyświetlić różnic (diff)",
"Back to Changed Files": "Powrót do zmienionych plików",
"Default (the module's JDK)": "Domyślnie (zestaw JDK modułu)",
diff --git a/src/platform/locales/text/pt.json b/src/platform/locales/text/pt.json
index 3eb1467356..13df206d15 100644
--- a/src/platform/locales/text/pt.json
+++ b/src/platform/locales/text/pt.json
@@ -5959,7 +5959,6 @@
"Couldn't apply the suggested change": "Não foi possível aplicar a alteração sugerida",
"Couldn't resolve the thread": "Não foi possível resolver a conversa",
"Could not close comparison": "Não foi possível fechar a comparação",
- "Could not open comparison": "Não foi possível abrir a comparação",
"Could not show diff": "Não foi possível exibir o diff",
"Back to Changed Files": "Voltar para Arquivos alterados",
"Default (the module's JDK)": "Padrão (JDK do módulo)",
diff --git a/src/platform/locales/text/ru.json b/src/platform/locales/text/ru.json
index b55526e3cd..b1625d70dd 100644
--- a/src/platform/locales/text/ru.json
+++ b/src/platform/locales/text/ru.json
@@ -7622,7 +7622,6 @@
"Couldn't apply the suggested change": "Не удалось применить предложенное изменение",
"Couldn't resolve the thread": "Не удалось разрешить обсуждение",
"Could not close comparison": "Не удалось закрыть сравнение",
- "Could not open comparison": "Не удалось открыть сравнение",
"Could not show diff": "Не удалось показать различия",
"Comparison actions": "Действия сравнения",
"Back to Changed Files": "Назад к изменённым файлам",
diff --git a/src/platform/locales/text/tr.json b/src/platform/locales/text/tr.json
index 12b6cca89f..f33c52c64b 100644
--- a/src/platform/locales/text/tr.json
+++ b/src/platform/locales/text/tr.json
@@ -8639,7 +8639,6 @@
"Couldn't apply the suggested change": "Önerilen değişiklik uygulanamadı",
"Couldn't resolve the thread": "Yorum dizisi çözülemedi",
"Could not close comparison": "Karşılaştırma kapatılamadı",
- "Could not open comparison": "Karşılaştırma açılamadı",
"Back to Changed Files": "Değiştirilen Dosyalara Dön",
"Default (the module's JDK)": "Varsayılan (modülün JDK'sı)",
"Use classpath of module": "Modülün sınıf yolunu kullan",
diff --git a/src/platform/locales/text/zh-TW.json b/src/platform/locales/text/zh-TW.json
index 63101aae69..cd3ab0de3d 100644
--- a/src/platform/locales/text/zh-TW.json
+++ b/src/platform/locales/text/zh-TW.json
@@ -7234,7 +7234,6 @@
"Couldn't apply the suggested change": "無法應用建議的更改",
"Couldn't resolve the thread": "無法解決討論串",
"Could not close comparison": "無法關閉比較視窗",
- "Could not open comparison": "無法開啟比較視窗",
"Could not show diff": "無法顯示差異",
"Comparison actions": "比較操作",
"Back to Changed Files": "返回更改檔案清單",
diff --git a/src/platform/locales/text/zh.json b/src/platform/locales/text/zh.json
index 57d2e27970..a12123d1c8 100644
--- a/src/platform/locales/text/zh.json
+++ b/src/platform/locales/text/zh.json
@@ -1713,6 +1713,7 @@
"Compact mode": "紧凑模式",
"Companion object": "伴生对象",
"Compare": "对比",
+ "Comparisons": "比较列表",
"Compare Files": "比较文件",
"Compare File with Editor": "将文件与编辑器比较",
"Select a file in the Project view to compare with the editor": "在项目视图中选择一个要与编辑器比较的文件",
@@ -8194,7 +8195,6 @@
"Couldn't apply the suggested change": "无法应用建议的更改",
"Couldn't resolve the thread": "无法解决讨论串",
"Could not close comparison": "无法关闭比较窗口",
- "Could not open comparison": "无法打开比较窗口",
"Could not show diff": "无法显示差异",
"Comparison actions": "比较操作",
"Back to Changed Files": "返回更改文件列表",