Skip to content

Commit 1c209d5

Browse files
committed
bug fix: tab command conflict
1 parent 064aba0 commit 1c209d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ export class EditDecorationManager {
172172
this.currentRemovedCodeDecorations = []
173173
this.acceptHandler = undefined
174174
this.rejectHandler = undefined
175+
// Clear context to allow normal Tab key behavior
175176
void setContext('amazonq.editSuggestionActive' as any, false)
176177
}
177178

@@ -321,6 +322,7 @@ export async function displaySvgDecoration(
321322
isInlineEdit: true,
322323
}
323324
languageClient.sendNotification('aws/logInlineCompletionSessionResults', params)
325+
decorationManager.dispose()
324326
},
325327
() => {
326328
// Handle reject
@@ -338,6 +340,7 @@ export async function displaySvgDecoration(
338340
isInlineEdit: true,
339341
}
340342
languageClient.sendNotification('aws/logInlineCompletionSessionResults', params)
343+
decorationManager.dispose()
341344
},
342345
originalCode,
343346
newCode,

0 commit comments

Comments
 (0)