You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/startup/AmazonQStartupActivity.kt
Copy file name to clipboardExpand all lines: plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/settings/CodeWhispererSettings.kt
@@ -50,7 +50,14 @@ class CodeWhispererSettings : PersistentStateComponent<CodeWhispererConfiguratio
50
50
if (!hasEnabledProjectContextOnce()) {
51
51
toggleEnabledProjectContextOnce(true)
52
52
state.value[CodeWhispererConfigurationType.IsProjectContextEnabled] = value
53
-
notifyInfo("Amazon Q", "Workspace index is now enabled. You can disable it from Amazon Q settings.", notificationActions =listOf(CodeWhispererShowSettingsAction()))
53
+
// todo: hack to bypass module dependency issue (codewhisperer -> shared), should pass [CodeWhispererShowSettingsAction] instead when it's resolved
54
+
ActionManager.getInstance().getAction("codewhisperer.settings")?.let { a ->
55
+
notifyInfo(
56
+
"Amazon Q",
57
+
"Workspace index is now enabled. You can disable it from Amazon Q settings.",
58
+
notificationActions =listOf(a)
59
+
)
60
+
}
54
61
}
55
62
} else {
56
63
state.value[CodeWhispererConfigurationType.IsProjectContextEnabled] = value
0 commit comments