Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
import * as vscode from "vscode";
import type { RepowiseContext } from "../core/context";
import { registerFindingsTree } from "./trees/findings";
import { registerRefactoringTree } from "./trees/refactoring";
import { retryMountedTrees } from "./trees/shared";
import { InternalCommands } from "../constants";
/**
* Instantiates the two activity-bar tree views (Findings, Refactoring) and
* bundles their disposables into one. Registration is cheap: each provider
* defers its first fetch until VS Code asks for children, which only happens
* once the view is visible. Decisions live in the Home launcher and the
* decisions panel; hotspots, ownership, dead code, and health are sections of
* the Findings tree.
*/
export function registerTrees(ctx: RepowiseContext): vscode.Disposable {
return vscode.Disposable.from(
registerFindingsTree(ctx),
registerRefactoringTree(ctx),
vscode.commands.registerCommand(InternalCommands.retryTrees, retryMountedTrees),
);
}