Skip to content

Commit cbcc5c2

Browse files
committed
fix merge issues
1 parent 6ee1845 commit cbcc5c2

File tree

2 files changed

+1
-33
lines changed

2 files changed

+1
-33
lines changed

packages/amazonq/src/app/inline/EditRendering/displayImage.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -283,23 +283,6 @@ export async function displaySvgDecoration(
283283
deletedCharacterCount: deletedCharacterCount,
284284
}
285285
languageClient.sendNotification('aws/logInlineCompletionSessionResults', params)
286-
decorationManager.dispose()
287-
const params: LogInlineCompletionSessionResultsParams = {
288-
sessionId: session.sessionId,
289-
completionSessionResult: {
290-
[item.itemId]: {
291-
seen: true,
292-
accepted: true,
293-
discarded: false,
294-
},
295-
},
296-
totalSessionDisplayTime: Date.now() - session.requestStartTime,
297-
firstCompletionDisplayLatency: session.firstCompletionDisplayLatency,
298-
// TODO: Update LogInlineCompletionSessionResultsParams interface to include these properties
299-
// addedCharacterCount: addedCharacterCount,
300-
// deletedCharacterCount: deletedCharacterCount,
301-
}
302-
languageClient.sendNotification('aws/logInlineCompletionSessionResults', params)
303286
},
304287
() => {
305288
// Handle reject
@@ -318,21 +301,6 @@ export async function displaySvgDecoration(
318301
deletedCharacterCount: deletedCharacterCount,
319302
}
320303
languageClient.sendNotification('aws/logInlineCompletionSessionResults', params)
321-
decorationManager.dispose()
322-
const params: LogInlineCompletionSessionResultsParams = {
323-
sessionId: session.sessionId,
324-
completionSessionResult: {
325-
[item.itemId]: {
326-
seen: true,
327-
accepted: false,
328-
discarded: false,
329-
},
330-
},
331-
// TODO: Update LogInlineCompletionSessionResultsParams interface to include these properties
332-
// addedCharacterCount: addedCharacterCount,
333-
// deletedCharacterCount: deletedCharacterCount,
334-
}
335-
languageClient.sendNotification('aws/logInlineCompletionSessionResults', params)
336304
},
337305
originalCode,
338306
newCode

packages/amazonq/test/unit/amazonq/apps/inline/recommendationService.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ describe('RecommendationService', () => {
275275
const options = { showUi: true }
276276

277277
// Stub the UI methods to avoid errors
278-
sandbox.stub(activeStateController, 'showGenerating').resolves()
278+
// const showGeneratingStub = sandbox.stub(activeStateController, 'showGenerating').resolves()
279279
const hideGeneratingStub = sandbox.stub(activeStateController, 'hideGenerating')
280280

281281
// Temporarily replace console.error with a no-op function to prevent test failure

0 commit comments

Comments
 (0)