Skip to content

Commit 8988d1b

Browse files
committed
doc string
1 parent 5a220d2 commit 8988d1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/amazonq/src/app/inline/completion.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ export class AmazonQInlineCompletionItemProvider implements InlineCompletionItem
258258
// there is a bug in VS Code, when hitting Enter, the context.triggerKind is Invoke (0)
259259
// when hitting other keystrokes, the context.triggerKind is Automatic (1)
260260
// we only mark option + C as manual trigger
261+
// this is a workaround since the inlineSuggest.trigger command take no params
261262
const isAutoTrigger = performance.now() - vsCodeState.lastManualTriggerTime > 50
262263
if (isAutoTrigger && !CodeSuggestionsState.instance.isSuggestionsEnabled()) {
263264
// return early when suggestions are disabled with auto trigger

0 commit comments

Comments
 (0)