File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
server/aws-lsp-codewhisperer/src/language-server/agenticChat Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -270,9 +270,6 @@ export class TabBarController {
270270 return
271271 }
272272 this . #loadedChats = true
273-
274- const dbSize = this . #chatHistoryDb. getDatabaseFileSize ( )
275-
276273 const openConversations = this . #chatHistoryDb. getOpenTabs ( )
277274 if ( openConversations ) {
278275 for ( const conversation of openConversations ) {
@@ -281,8 +278,8 @@ export class TabBarController {
281278 }
282279 }
283280 this . #telemetryService. emitLoadHistory ( {
284- amazonqTimeToLoadHistory : this . #chatHistoryDb. getLoadTime ( ) || - 1 ,
285- amazonQHistoryFileSize : dbSize || - 1 ,
281+ amazonqTimeToLoadHistory : this . #chatHistoryDb. getLoadTime ( ) ?? - 1 ,
282+ amazonQHistoryFileSize : this . #chatHistoryDb . getDatabaseFileSize ( ) ?? - 1 ,
286283 openTabCount : openConversations . length ,
287284 languageServerVersion : this . #features. runtime . serverInfo . version ,
288285 } )
You can’t perform that action at this time.
0 commit comments