-
Notifications
You must be signed in to change notification settings - Fork 251
fix(amazonq): fix code issues tab not appearing in remote #5737
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package software.aws.toolkits.jetbrains | ||
|
||
import com.intellij.analysis.problemsView.toolWindow.ProblemsView | ||
import com.intellij.openapi.project.Project | ||
import com.intellij.openapi.wm.ToolWindow | ||
import com.jetbrains.rdserver.toolWindow.BackendToolWindowHost | ||
|
||
class CwmProblemsViewMutator : ProblemsViewMutator { | ||
Check warning on line 11 in plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/CwmProblemsViewMutator.kt
|
||
Check warningCode scanning / QDJVMC Extension class should be final and non-public Warning
Extension class should not be public
|
||
override fun mutateProblemsView(project: Project, runnable: (ToolWindow) -> Unit) { | ||
BackendToolWindowHost.getAllInstances(project).forEach { host -> | ||
Check warning on line 13 in plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/CwmProblemsViewMutator.kt
|
||
host.getToolWindow(ProblemsView.ID)?.let { | ||
runnable(it) | ||
} | ||
} | ||
} | ||
Check warning on line 18 in plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/CwmProblemsViewMutator.kt
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package software.aws.toolkits.jetbrains | ||
|
||
import com.intellij.analysis.problemsView.toolWindow.ProblemsView | ||
import com.intellij.openapi.project.Project | ||
import com.intellij.openapi.wm.ToolWindow | ||
|
||
class DefaultProblemsViewMutator : ProblemsViewMutator { | ||
Check warning on line 10 in plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/DefaultProblemsViewMutator.kt
|
||
Check warningCode scanning / QDJVMC Extension class should be final and non-public Warning
Extension class should not be public
|
||
override fun mutateProblemsView(project: Project, runnable: (ToolWindow) -> Unit) { | ||
ProblemsView.getToolWindow(project)?.let { runnable(it) } | ||
} | ||
} | ||
Check warning on line 14 in plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/DefaultProblemsViewMutator.kt
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package software.aws.toolkits.jetbrains | ||
|
||
import com.intellij.openapi.extensions.ExtensionPointName | ||
import com.intellij.openapi.project.Project | ||
import com.intellij.openapi.wm.ToolWindow | ||
|
||
interface ProblemsViewMutator { | ||
fun mutateProblemsView(project: Project, runnable: (ToolWindow) -> Unit) | ||
|
||
companion object { | ||
val EP = ExtensionPointName<ProblemsViewMutator>("software.aws.toolkits.jetbrains.problemsViewMutator") | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<!-- Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. --> | ||
<!-- SPDX-License-Identifier: Apache-2.0 --> | ||
|
||
<idea-plugin> | ||
<extensions defaultExtensionNs="software.aws.toolkits.jetbrains"> | ||
<problemsViewMutator implementation="software.aws.toolkits.jetbrains.CwmProblemsViewMutator"/> | ||
</extensions> | ||
</idea-plugin> |
Uh oh!
There was an error while loading. Please reload this page.