Skip to content

Commit

Permalink
CodeWhisperer: Disable Learn CodeWhisperer page in remote gateway (#3905
Browse files Browse the repository at this point in the history
)
  • Loading branch information
andrewyuq authored Oct 6, 2023
1 parent 29d6cc8 commit f978059
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import com.intellij.openapi.vfs.VirtualFile
import software.aws.toolkits.core.utils.debug
import software.aws.toolkits.core.utils.getLogger
import software.aws.toolkits.jetbrains.services.codewhisperer.explorer.CodeWhispererExplorerActionManager
import software.aws.toolkits.jetbrains.utils.isRunningOnRemoteBackend
import software.aws.toolkits.telemetry.UiTelemetry

class LearnCodeWhispererEditorProvider : FileEditorProvider, DumbAware {
Expand All @@ -33,6 +34,8 @@ class LearnCodeWhispererEditorProvider : FileEditorProvider, DumbAware {

// Will be called every time the getting started page is opened
fun openEditor(project: Project) {
if (isRunningOnRemoteBackend()) return

val virtualFile = LearnCodeWhispererVirtualFile()

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

0 comments on commit f978059

Please sign in to comment.