@@ -43,7 +43,7 @@ const {
4343
4444const connectDB = async ( ) => {
4545 await dbManager . connect (
46- "file:/Users/olasunkanmi /Documents/Github /codebuddy/patterns/dev .db" ,
46+ "file:/Users/olasunkanmioyinlola /Documents/Apps /codebuddy/patterns/aii .db"
4747 ) ;
4848} ;
4949
@@ -57,7 +57,7 @@ export async function activate(context: vscode.ExtensionContext) {
5757 const session : vscode . AuthenticationSession | undefined =
5858 await credentials . getSession ( ) ;
5959 vscode . window . showInformationMessage (
60- `Logged into GitHub as ${ session ?. account . label } ` ,
60+ `Logged into GitHub as ${ session ?. account . label } `
6161 ) ;
6262 Memory . getInstance ( ) ;
6363 await connectDB ( ) ;
@@ -75,11 +75,11 @@ export async function activate(context: vscode.ExtensionContext) {
7575 // const names = await fileUpload.getFileNames();
7676 // console.log(files, names);
7777
78- const index = CodeIndexingService . createInstance ( ) ;
78+ // const index = CodeIndexingService.createInstance();
7979 // Get each of the folders and call the next line for each
80- const result = await index . buildFunctionStructureMap ( ) ;
80+ // const result = await index.buildFunctionStructureMap();
8181 // await index.insertFunctionsinDB();
82- console . log ( result ) ;
82+ // console.log(result);
8383 const {
8484 comment,
8585 review,
@@ -97,49 +97,49 @@ export async function activate(context: vscode.ExtensionContext) {
9797 } = OLA_ACTIONS ;
9898 const getComment = new Comments (
9999 `${ USER_MESSAGE } generates the code comments...` ,
100- context ,
100+ context
101101 ) ;
102102 const getInLineChat = new InLineChat (
103103 `${ USER_MESSAGE } generates a response...` ,
104- context ,
104+ context
105105 ) ;
106106 const generateOptimizeCode = new OptimizeCode (
107107 `${ USER_MESSAGE } optimizes the code...` ,
108- context ,
108+ context
109109 ) ;
110110 const generateRefactoredCode = new RefactorCode (
111111 `${ USER_MESSAGE } refactors the code...` ,
112- context ,
112+ context
113113 ) ;
114114 const explainCode = new ExplainCode (
115115 `${ USER_MESSAGE } explains the code...` ,
116- context ,
116+ context
117117 ) ;
118118 const generateReview = new ReviewCode (
119119 `${ USER_MESSAGE } reviews the code...` ,
120- context ,
120+ context
121121 ) ;
122122 const codeChartGenerator = new CodeChartGenerator (
123123 `${ USER_MESSAGE } creates the code chart...` ,
124- context ,
124+ context
125125 ) ;
126126 const codePattern = fileUpload ;
127127 const knowledgeBase = new ReadFromKnowledgeBase (
128128 `${ USER_MESSAGE } generate your code pattern...` ,
129- context ,
129+ context
130130 ) ;
131131 const generateCommitMessage = new GenerateCommitMessage (
132132 `${ USER_MESSAGE } generates a commit message...` ,
133- context ,
133+ context
134134 ) ;
135135 const generateInterviewQuestions = new InterviewMe (
136136 `${ USER_MESSAGE } generates interview questions...` ,
137- context ,
137+ context
138138 ) ;
139139
140140 const generateUnitTests = new GenerateUnitTest (
141141 `${ USER_MESSAGE } generates unit tests...` ,
142- context ,
142+ context
143143 ) ;
144144
145145 const actionMap = {
@@ -153,7 +153,7 @@ export async function activate(context: vscode.ExtensionContext) {
153153 new FixError (
154154 `${ USER_MESSAGE } finds a solution to the error...` ,
155155 context ,
156- errorMessage ,
156+ errorMessage
157157 ) . execute ( errorMessage ) ,
158158 [ explain ] : async ( ) => await explainCode . execute ( ) ,
159159 [ pattern ] : async ( ) => await codePattern . uploadFileHandler ( ) ,
@@ -165,15 +165,15 @@ export async function activate(context: vscode.ExtensionContext) {
165165 } ;
166166
167167 const subscriptions : vscode . Disposable [ ] = Object . entries ( actionMap ) . map (
168- ( [ action , handler ] ) => vscode . commands . registerCommand ( action , handler ) ,
168+ ( [ action , handler ] ) => vscode . commands . registerCommand ( action , handler )
169169 ) ;
170170
171171 const selectedGenerativeAiModel = getConfigValue ( "generativeAi.option" ) ;
172172
173173 const quickFix = new CodeActionsProvider ( ) ;
174174 quickFixCodeAction = vscode . languages . registerCodeActionsProvider (
175175 { scheme : "file" , language : "*" } ,
176- quickFix ,
176+ quickFix
177177 ) ;
178178
179179 agentEventEmmitter = new EventEmitter ( ) ;
@@ -216,13 +216,13 @@ export async function activate(context: vscode.ExtensionContext) {
216216 webviewProviderClass ,
217217 subscriptions ,
218218 quickFixCodeAction ,
219- agentEventEmmitter ,
219+ agentEventEmmitter
220220 ) ;
221221 }
222222 } catch ( error ) {
223223 Memory . clear ( ) ;
224224 vscode . window . showErrorMessage (
225- "An Error occured while setting up generative AI model" ,
225+ "An Error occured while setting up generative AI model"
226226 ) ;
227227 console . log ( error ) ;
228228 }
0 commit comments