File tree Expand file tree Collapse file tree 2 files changed +2
-175
lines changed
plugin/src/software/aws/toolkits/eclipse/amazonq/util Expand file tree Collapse file tree 2 files changed +2
-175
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public void verifyKey(final VerifyEvent event) {
57
57
// Here we examine all other relevant keystrokes that may be relevant to the preview's lifetime:
58
58
// - CR (new line)
59
59
// - BS (backspace)
60
- String currentSuggestion = qInvocationSessionInstance .getCurrentSuggestion ().trim ();
60
+ String currentSuggestion = qInvocationSessionInstance .getCurrentSuggestion ().getInsertText (). trim ();
61
61
switch (event .keyCode ) {
62
62
case SWT .CR :
63
63
if (lastKeyStrokeType == LastKeyStrokeType .OPEN_CURLY && isAutoClosingEnabled ) {
@@ -190,7 +190,7 @@ public void verifyText(final VerifyEvent event) {
190
190
return ;
191
191
}
192
192
193
- String currentSuggestion = qInvocationSessionInstance .getCurrentSuggestion ().trim ();
193
+ String currentSuggestion = qInvocationSessionInstance .getCurrentSuggestion ().getInsertText (). trim ();
194
194
int currentOffset = widget .getCaretOffset ();
195
195
qInvocationSessionInstance
196
196
.setHasBeenTypedahead (currentOffset - qInvocationSessionInstance .getInvocationOffset () > 0 );
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments