-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(inline): move codewhispererConfigurable to shared module #5304
base: main
Are you sure you want to change the base?
Conversation
…posed to be a pure state machine
import software.aws.toolkits.resources.message | ||
import software.aws.toolkits.telemetry.AwsTelemetry |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
import software.aws.toolkits.resources.message | ||
import software.aws.toolkits.telemetry.AwsTelemetry |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
@@ -16,6 +18,11 @@ | |||
override fun actionPerformed(e: AnActionEvent) { | |||
val project = e.project ?: return | |||
|
|||
CodeWhispererExplorerActionManager.getInstance().setAutoSuggestion(project, false) | |||
CodeWhispererExplorerActionManager.getInstance().setAutoSuggestion(false) | |||
AwsTelemetry.modifySetting( |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
import software.aws.toolkits.resources.message | ||
import software.aws.toolkits.telemetry.AwsTelemetry |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
import software.aws.toolkits.resources.message | ||
import software.aws.toolkits.telemetry.AwsTelemetry |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
import software.aws.toolkits.resources.message | ||
import software.aws.toolkits.telemetry.AwsTelemetry |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
@@ -16,6 +18,11 @@ | |||
override fun actionPerformed(e: AnActionEvent) { | |||
val project = e.project ?: return | |||
|
|||
CodeWhispererExplorerActionManager.getInstance().setAutoSuggestion(project, true) | |||
CodeWhispererExplorerActionManager.getInstance().setAutoSuggestion(true) | |||
AwsTelemetry.modifySetting( |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
@@ -11,6 +11,7 @@ | |||
import software.aws.toolkits.jetbrains.services.codewhisperer.explorer.isUserBuilderId | |||
import software.aws.toolkits.jetbrains.services.codewhisperer.util.CodeWhispererConstants | |||
import software.aws.toolkits.resources.message | |||
import software.aws.toolkits.telemetry.AwsTelemetry |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
@@ -11,6 +11,7 @@ | |||
import software.aws.toolkits.jetbrains.services.codewhisperer.explorer.isUserBuilderId | |||
import software.aws.toolkits.jetbrains.services.codewhisperer.util.CodeWhispererConstants | |||
import software.aws.toolkits.resources.message | |||
import software.aws.toolkits.telemetry.AwsTelemetry |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
@@ -20,7 +21,12 @@ | |||
val project = e.project ?: return | |||
|
|||
val actionManager = CodeWhispererExplorerActionManager.getInstance() | |||
actionManager.setAutoCodeScan(project, true) | |||
actionManager.setAutoCodeScan(true) | |||
AwsTelemetry.modifySetting( |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
todo: should rename to QConfigurable |
Types of changes
Description
Both
CodeWhispererConfigurable
andCodeWhispererSettings
are supposed to live in shared module as they the amazon q settings panel which are shared accross different features like chat, inline or other features like code scan.(
CodeWhispererSettings
has been already moved to share, thus this PR targetsCodeWhispererConfigurable
)Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.