Skip to content

Commit

Permalink
Prevent Gateway from using default connections from other IDEs (#4601)
Browse files Browse the repository at this point in the history
  • Loading branch information
manodnyab committed Jun 20, 2024
1 parent ecb1e65 commit 4a48c96
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package software.aws.toolkits.jetbrains.core.credentials

import com.intellij.ide.ActivityTracker
import com.intellij.openapi.application.ApplicationInfo
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.components.State
Expand Down Expand Up @@ -76,6 +77,7 @@ class DefaultToolkitConnectionManager : ToolkitConnectionManager, PersistentStat

null
} ?: defaultConnection?.let {
if (ApplicationInfo.getInstance().build.productCode == "GW") return null
if (feature.supportsConnectionType(it)) {
return it
}
Expand Down

0 comments on commit 4a48c96

Please sign in to comment.