@@ -10,15 +10,12 @@ import { TaskRunner } from "./runners/TaskRunner";
1010import { QuickTasksProvider } from "./QuickTasksProvider" ;
1111import { logger } from "./utils/logger" ;
1212import { initDb , disposeDb } from "./db/lifecycle" ;
13- import { forceSelectModel } from "./semantic/summariser" ;
1413import { syncTagsFromConfig } from "./tags/tagSync" ;
1514import { setupFileWatchers } from "./watchers" ;
1615import { PrivateTaskDecorationProvider } from "./tree/PrivateTaskDecorationProvider" ;
1716import { appState } from "./state" ;
1817import {
19- initAiSummaries ,
2018 registerDiscoveredCommands ,
21- runSummarisation ,
2219 syncAndSummarise ,
2320} from "./summaryOrchestration" ;
2421import type { SummaryDeps } from "./summaryOrchestration" ;
@@ -87,15 +84,11 @@ export async function activate(context: vscode.ExtensionContext): Promise<Extens
8784}
8885
8986function runBackgroundStartup ( workspaceRoot : string ) : void {
90- initialDiscovery ( workspaceRoot )
91- . then ( ( ) => {
92- initAiSummaries ( getSummaryDeps ( workspaceRoot ) ) ;
93- } )
94- . catch ( ( e : unknown ) => {
95- logger . error ( "Initial discovery failed" , {
96- error : e instanceof Error ? e . message : String ( e ) ,
97- } ) ;
87+ initialDiscovery ( workspaceRoot ) . catch ( ( e : unknown ) => {
88+ logger . error ( "Initial discovery failed" , {
89+ error : e instanceof Error ? e . message : String ( e ) ,
9890 } ) ;
91+ } ) ;
9992}
10093
10194async function initDatabaseSafe ( workspaceRoot : string ) : Promise < void > {
@@ -201,24 +194,6 @@ function registerFilterCommands(context: vscode.ExtensionContext): void {
201194 vscode . commands . registerCommand ( "commandtree.clearFilter" , ( ) => {
202195 getTreeProvider ( ) . clearFilters ( ) ;
203196 updateFilterContext ( ) ;
204- } ) ,
205- vscode . commands . registerCommand ( "commandtree.generateSummaries" , async ( ) => {
206- const workspaceRoot = vscode . workspace . workspaceFolders ?. [ 0 ] ?. uri . fsPath ;
207- if ( workspaceRoot !== undefined ) {
208- await runSummarisation ( getSummaryDeps ( workspaceRoot ) ) ;
209- }
210- } ) ,
211- vscode . commands . registerCommand ( "commandtree.selectModel" , async ( ) => {
212- const result = await forceSelectModel ( ) ;
213- if ( result . ok ) {
214- vscode . window . showInformationMessage ( `CommandTree: AI model set to ${ result . value } ` ) ;
215- const workspaceRoot = vscode . workspace . workspaceFolders ?. [ 0 ] ?. uri . fsPath ;
216- if ( workspaceRoot !== undefined ) {
217- await runSummarisation ( getSummaryDeps ( workspaceRoot ) ) ;
218- }
219- } else {
220- vscode . window . showWarningMessage ( `CommandTree: ${ result . error } ` ) ;
221- }
222197 } )
223198 ) ;
224199}
0 commit comments