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
66import com.intellij.openapi.actionSystem.DataKey
77import com.intellij.openapi.editor.markup.EffectType
88import com.intellij.openapi.editor.markup.TextAttributes
9+ import com.intellij.openapi.util.registry.Registry
910import com.intellij.ui.JBColor
1011import software.amazon.awssdk.regions.Region
1112import software.amazon.awssdk.services.codewhispererruntime.model.AccessDeniedException
@@ -153,7 +154,9 @@ object CodeWhispererConstants {
153154 }
154155
155156 object Config {
156- const val CODEWHISPERER_ENDPOINT = " https://codewhisperer.us-east-1.amazonaws.com/" // PROD
157+ val CODEWHISPERER_ENDPOINT
158+ get() = Registry .get(" amazon.q.endpoint" )
159+
157160 const val CODEWHISPERER_IDPOOL_ID = " us-east-1:70717e99-906f-4add-908c-bd9074a2f5b9"
158161 val Sigv4ClientRegion = Region .US_EAST_1
159162 val BearerClientRegion = Region .US_EAST_1
Original file line number Diff line number Diff line change 8383 <incompatible-with >com.intellij.jetbrains.client</incompatible-with >
8484 <incompatible-with >com.intellij.gateway</incompatible-with >
8585
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+
8691 <xi : include href =" /META-INF/module-amazonq.xml" />
8792
8893 <xi : include href =" /META-INF/change-notes.xml" xpointer =" xpointer(/idea-plugin/*)" >
You can’t perform that action at this time.
0 commit comments