Repository navigation
Done
Labels
area: extensionVS Code extension host (TypeScript): commands, launcher, servers, servicesstream: cleanup-refactorEpic #26: deep cleanup and restructuring of the extensiontfmAdds the issue to the TFM board automatically. Do not removeuser-storySub-issue of an epic ([Story] title prefix)
Description
As a developer reading the Code-XR source,
I want every module and declaration that nothing can reach to be gone,
so that I only read, maintain and ship code that actually runs.
Scope (ROADMAP W2a + W2b + hinge, amended by docs/cleanup/w2-revalidation.md)
- 54 modules unreachable from
src/extension.ts(2,317 lines): 32 unimported barrels, 5 zero-byte modules, the engine barrel chain, duplicate interface files, pass-through requirement rules,directoryFilter,fileDisplayUtils,ConfigurationManager+ example,servers/config, the duplicateserverItems.ts, the unregistered SERVERS provider, the old active-analyses provider,handlePythonEnvActions,learn_more/views, the browse-visualizations view, the stale language-table fork, the unreachable server click layers (W2-01..W2-21). no-unused-varsas error andnoUnusedLocals(W2-22, W2-23), so later deletions are self-checking.- Dead declarations inside live files (W2-24..W2-44): uncalled helpers, hashing cluster, aggregator accessors, certificate-inspection API, unreachable
MultiServerLauncher/ServerControlhalves, dead types and statics. - Additions from the re-validation:
VisualizationConfig/TemplateProcessingResult, the duplicateFileRequirement,CreateStructure.getSSEScript,detectVSCodeTheme,HttpsCustomServer.getFullConfig, the unusedstatusIconlocal. W2-29 dropsAnalysisTableModefrom its scope (text-pinned by two tests). W2-14 is H2, not H1.
Acceptance criteria
- Each deletion is its own commit with the four-check proof (importers, string references, command registration, tests reading it as text) in the message.
- File deletions are H1:
dist/extension.jssha256 identical before/after (production build). Declarations inside live files are H2: reviewed shrink. - Unreachable modules 54 → 0 and pinned by the ratchet; dead exports → 0.
-
npm testgreen after every commit;guardrail-baseline.jsonupdated in the same commit as each change. - No change in behaviour; the feature-baseline test ([Story] Feature baseline: inventory everything the extension has and does, and verify it after the cleanup #27 / safety-net story) stays green.
Metadata
Metadata
Assignees
Labels
area: extensionVS Code extension host (TypeScript): commands, launcher, servers, servicesstream: cleanup-refactorEpic #26: deep cleanup and restructuring of the extensiontfmAdds the issue to the TFM board automatically. Do not removeuser-storySub-issue of an epic ([Story] title prefix)
Activity
chore(views): delete the stale language-table fork
chore(views): delete the dead tree-click dispatch root
chore(views): delete the unreachable servers click layer
chore(views): delete the unreachable active-servers click layer
build(lint): no-unused-vars as error; drop the 14 unused imports
chore(analysis): delete uncalled getStatusIcon
chore(templates): delete the legacy CreateStructure.getSSEScript
chore(settings): delete the uncalled ProfileConfiguration.detectVSCod…
build(tsc): enable noUnusedLocals in a typecheck-only tsconfig.check.…
chore(settings): delete dimensionMappingCleaner.ts and 3 uncalled met…
chore(utils): delete 8 dead helpers
12 remaining items
chore(historical): delete HistoricalComparisonService.clearActiveComp…
chore(watchers): delete FileHashTracker.isAnalyzableExtension
chore(analysis): drop the empty getMainCommandRegistrations hook
chore(analysis-views): delete the TODO-stub CodeAnalysisItemFactory
chore(utils): delete the deprecated CommonCommands.refreshServers
chore(analysis-views): delete the duplicate CommandRegistration inter…
chore(babia): delete two unused chart model interfaces
chore(engine): delete the unused FileRequirement interface
Merge remote-tracking branch 'origin/v1.2.1' into claude/project-thre…
docs(v1.2.1): session log for #29 (dead code, W2-01..W2-44)
Merge pull request #52 from Code-XR-Project/claude/project-thread-n2s…
aMonteSl commentedon Nov 25, 2026
Done in #52, merged into
v1.2.1with CI green on Linux, macOS and Windows. Unreachable modules 54 → 0,src52,974 → 47,968 lines, guardrail waivers empty. F5 checklist in.claude/docs/v1.2.1/sessions/29-dead-code.mdfor the final verification (#43).Generated by Claude Code