Skip to content

Commit f978059

Browse files
authored
CodeWhisperer: Disable Learn CodeWhisperer page in remote gateway (#3905)
1 parent 29d6cc8 commit f978059

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jetbrains-core/src/software/aws/toolkits/jetbrains/services/codewhisperer/learn/LearnCodeWhispererEditorProvider.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import com.intellij.openapi.vfs.VirtualFile
1616
import software.aws.toolkits.core.utils.debug
1717
import software.aws.toolkits.core.utils.getLogger
1818
import software.aws.toolkits.jetbrains.services.codewhisperer.explorer.CodeWhispererExplorerActionManager
19+
import software.aws.toolkits.jetbrains.utils.isRunningOnRemoteBackend
1920
import software.aws.toolkits.telemetry.UiTelemetry
2021

2122
class LearnCodeWhispererEditorProvider : FileEditorProvider, DumbAware {
@@ -33,6 +34,8 @@ class LearnCodeWhispererEditorProvider : FileEditorProvider, DumbAware {
3334

3435
// Will be called every time the getting started page is opened
3536
fun openEditor(project: Project) {
37+
if (isRunningOnRemoteBackend()) return
38+
3639
val virtualFile = LearnCodeWhispererVirtualFile()
3740

3841
// The "hasShown" status will be passed as local states to the page rendering process each time

0 commit comments

Comments
 (0)