Skip to content

Commit 25e52ab

Browse files
authored
fix(amazonq): remember "Pause Auto-Suggestions" after IDE restart aws#5126
Problem IDE restart will re-enable auto trigger, even if user selected "Pause Auto-Suggestions". Solution Do not re-enable autosuggestions on startup.
1 parent d8af622 commit 25e52ab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Bug Fix",
3+
"description": "Amazon Q inline suggestions: remember `Pause Auto-Suggestions` after IDE restart"
4+
}

packages/amazonq/src/extensionCommon.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import * as vscode from 'vscode'
77
import * as semver from 'semver'
88
import { join } from 'path'
99
import {
10-
CodeSuggestionsState,
1110
activate as activateCodeWhisperer,
1211
shutdown as shutdownCodeWhisperer,
1312
amazonQDismissedKey,
@@ -113,9 +112,6 @@ export async function activateAmazonQCommon(context: vscode.ExtensionContext, is
113112
// reload webviews
114113
await vscode.commands.executeCommand('workbench.action.webview.reloadWebviewAction')
115114

116-
// enable auto suggestions on activation
117-
await CodeSuggestionsState.instance.setSuggestionsEnabled(true)
118-
119115
if (AuthUtils.ExtensionUse.instance.isFirstUse()) {
120116
CommonAuthWebview.authSource = ExtStartUpSources.firstStartUp
121117
await vscode.commands.executeCommand('workbench.view.extension.amazonq')

0 commit comments

Comments
 (0)