Skip to content

Commit ae140be

Browse files
committed
Fixes merging error
1 parent b079720 commit ae140be

File tree

2 files changed

+2
-175
lines changed

2 files changed

+2
-175
lines changed

plugin/src/software/aws/toolkits/eclipse/amazonq/util/QInlineInputListener.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void verifyKey(final VerifyEvent event) {
5757
// Here we examine all other relevant keystrokes that may be relevant to the preview's lifetime:
5858
// - CR (new line)
5959
// - BS (backspace)
60-
String currentSuggestion = qInvocationSessionInstance.getCurrentSuggestion().trim();
60+
String currentSuggestion = qInvocationSessionInstance.getCurrentSuggestion().getInsertText().trim();
6161
switch (event.keyCode) {
6262
case SWT.CR:
6363
if (lastKeyStrokeType == LastKeyStrokeType.OPEN_CURLY && isAutoClosingEnabled) {
@@ -190,7 +190,7 @@ public void verifyText(final VerifyEvent event) {
190190
return;
191191
}
192192

193-
String currentSuggestion = qInvocationSessionInstance.getCurrentSuggestion().trim();
193+
String currentSuggestion = qInvocationSessionInstance.getCurrentSuggestion().getInsertText().trim();
194194
int currentOffset = widget.getCaretOffset();
195195
qInvocationSessionInstance
196196
.setHasBeenTypedahead(currentOffset - qInvocationSessionInstance.getInvocationOffset() > 0);

plugin/src/software/aws/toolkits/eclipse/amazonq/util/QInlineVerifyKeyListener.java

Lines changed: 0 additions & 173 deletions
This file was deleted.

0 commit comments

Comments
 (0)