Skip to content

Commit 649dc1a

Browse files
committed
make nep blocking
1 parent b63f600 commit 649dc1a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import {
4141
import { LineTracker } from './stateTracker/lineTracker'
4242
import { InlineTutorialAnnotation } from './tutorials/inlineTutorialAnnotation'
4343
import { TelemetryHelper } from './telemetryHelper'
44-
import { Experiments, getLogger, sleep } from 'aws-core-vscode/shared'
44+
import { Experiments, getContext, getLogger, sleep } from 'aws-core-vscode/shared'
4545
import { messageUtils } from 'aws-core-vscode/utils'
4646
import { EditsSuggestionSvg } from './EditRendering/imageRenderer'
4747
import { ICursorUpdateRecorder } from './cursorUpdateManager'
@@ -350,6 +350,10 @@ export class AmazonQInlineCompletionItemProvider implements InlineCompletionItem
350350
return []
351351
}
352352

353+
if (getContext('aws.amazonq.editSuggestionActive') === true) {
354+
return []
355+
}
356+
353357
// there is a bug in VS Code, when hitting Enter, the context.triggerKind is Invoke (0)
354358
// when hitting other keystrokes, the context.triggerKind is Automatic (1)
355359
// we only mark option + C as manual trigger

0 commit comments

Comments
 (0)