Файли
openidea/src/features/vcs/settingsPages.ts
T
ae9804bc8b feat(vcs): add option to filter Git Log on single click in Branches pane (#8040)
* feat(vcs): add option to filter Git Log on single click in Branches pane

* fix(vcs): do not update branch filter on context-menu right click

---------

Co-authored-by: LU XIANGRUI <[email protected]>
Co-authored-by: l0ng-ai <[email protected]>
2026-12-04 23:19:31 +08:00

27 рядки
1.1 KiB
TypeScript
Неформатований Анотація Історія

Цей файл містить неоднозначні символи Юнікоду
Цей файл містить символи Юнікоду, які можна сплутати з іншими символами. Якщо ви вважаєте, що це зроблено навмисно, можете сміливо ігнорувати це попередження. Щоб показати їх, скористайтеся кнопкою Escape.
import { tx } from "@/platform/i18n";
import { lazyComponent } from "@/ui";
import { registerEditorKind, registerSettingsPage } from "@/workbench/contributions";
import { MERGE_SCHEME_PREVIEW_KIND } from "./mergeSchemePreviewKind";
/** Settings › Version Control › Log (also used by the Settings window). */
export function activateSettingsPages(): () => void {
// The three-pane merge preview of Color Scheme › Diff & Merge: registered here so the
// native Settings window has it too, where the workbench's diff viewer never activates.
const schemePreview = registerEditorKind({
kind: MERGE_SCHEME_PREVIEW_KIND,
component: lazyComponent(() => import("./MergeSchemePreview").then((m) => m.MergeSchemePreview)),
title: () => tx("Diff & Merge"),
});
const log = registerSettingsPage({
id: "vcs.log",
title: "Log",
order: 6,
keywords: ["git log", "references", "tags", "columns", "commit time", "branches", "branch filter", "single click"],
component: lazyComponent(() => import("./LogSettingsPage").then((m) => m.LogSettingsPage)),
});
return () => {
schemePreview();
log();
};
}