Skip to content

Commit f219b41

Browse files
authored
config(amazonq): toggle NEP feature flag (#7668)
## Problem ## Solution --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 028f4f3 commit f219b41

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ ${itemLog}
401401
for (const item of items) {
402402
if (item.isInlineEdit) {
403403
// Check if Next Edit Prediction feature flag is enabled
404-
if (Experiments.instance.isExperimentEnabled('amazonqLSPNEP')) {
404+
if (Experiments.instance.get('amazonqLSPNEP', true)) {
405405
await showEdits(item, editor, session, this.languageClient, this)
406406
const t3 = performance.now()
407407
logstr = logstr + `- duration since trigger to NEP suggestion is displayed: ${t3 - t0}ms`

packages/amazonq/src/lsp/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export async function startLanguageServer(
176176
},
177177
textDocument: {
178178
inlineCompletionWithReferences: {
179-
inlineEditSupport: Experiments.instance.isExperimentEnabled('amazonqLSPNEP'),
179+
inlineEditSupport: Experiments.instance.get('amazonqLSPNEP', true),
180180
},
181181
},
182182
},

0 commit comments

Comments
 (0)