File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
src/main/resources/META-INF Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ package software.aws.toolkits.jetbrains.services.codewhisperer.util
6
6
import com.intellij.openapi.actionSystem.DataKey
7
7
import com.intellij.openapi.editor.markup.EffectType
8
8
import com.intellij.openapi.editor.markup.TextAttributes
9
+ import com.intellij.openapi.util.registry.Registry
9
10
import com.intellij.ui.JBColor
10
11
import software.amazon.awssdk.regions.Region
11
12
import software.amazon.awssdk.services.codewhispererruntime.model.AccessDeniedException
@@ -154,7 +155,9 @@ object CodeWhispererConstants {
154
155
}
155
156
156
157
object Config {
157
- const val CODEWHISPERER_ENDPOINT = " https://codewhisperer.us-east-1.amazonaws.com/" // PROD
158
+ val CODEWHISPERER_ENDPOINT
159
+ get() = Registry .get(" amazon.q.endpoint" ).asString()
160
+
158
161
const val CODEWHISPERER_IDPOOL_ID = " us-east-1:70717e99-906f-4add-908c-bd9074a2f5b9"
159
162
val Sigv4ClientRegion = Region .US_EAST_1
160
163
val BearerClientRegion = Region .US_EAST_1
Original file line number Diff line number Diff line change 83
83
<incompatible-with >com.intellij.jetbrains.client</incompatible-with >
84
84
<incompatible-with >com.intellij.gateway</incompatible-with >
85
85
86
+ <extensions defaultExtensionNs =" com.intellij" >
87
+ <registryKey key =" amazon.q.endpoint" description =" Endpoint to use for Amazon Q"
88
+ defaultValue =" https://codewhisperer.us-east-1.amazonaws.com/" restartRequired =" true" />
89
+ </extensions >
90
+
86
91
<xi : include href =" /META-INF/module-amazonq.xml" />
87
92
88
93
<xi : include href =" /META-INF/change-notes.xml" xpointer =" xpointer(/idea-plugin/*)" >
You can’t perform that action at this time.
0 commit comments