Skip to content

Commit 5295252

Browse files
committed
sspc
1 parent 80cb11d commit 5295252

File tree

5 files changed

+12
-13
lines changed

5 files changed

+12
-13
lines changed

plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/service/CodeWhispererService.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,6 @@ class CodeWhispererService(private val cs: CoroutineScope) : Disposable {
673673
// 5. customization
674674
val customizationArn = CodeWhispererModelConfigurator.getInstance().activeCustomization(project)?.arn
675675

676-
// TODO: use workspaceID from LSP
677676
var workspaceId: String? = null
678677
try {
679678
val workspacesInfos = getWorkspaceIds(project).get().workspaces
@@ -693,7 +692,7 @@ class CodeWhispererService(private val cs: CoroutineScope) : Disposable {
693692
fileContext, supplementalContext, connection, latencyContext, customizationArn, workspaceId)
694693
}
695694

696-
fun getWorkspaceIds(project: Project): CompletableFuture<LspServerConfigurations> {
695+
private fun getWorkspaceIds(project: Project): CompletableFuture<LspServerConfigurations> {
697696
val payload = GetConfigurationFromServerParams(
698697
section = "aws.q.workspaceContext"
699698
)

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ArtifactManager.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ class ArtifactManager(
3232

3333
companion object {
3434
private val DEFAULT_VERSION_RANGE = SupportedManifestVersionRange(
35-
startVersion = SemVer("0.1.0", 0, 1, 0),
36-
endVersion = SemVer("0.2.0", 0, 2, 0)
35+
startVersion = SemVer("3.0.0", 3, 0, 0),
36+
endVersion = SemVer("4.0.0", 4, 0, 0)
3737
)
3838
private val logger = getLogger<ArtifactManager>()
3939
}

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ManifestFetcher.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ManifestFetcher(
2525
private val logger = getLogger<ManifestFetcher>()
2626

2727
private const val DEFAULT_MANIFEST_URL =
28-
"https://aws-language-servers-gamma.amazonaws.com/remoteWorkspaceContext/0/manifest.json"
28+
"https://aws-toolkit-language-servers.amazonaws.com/codewhisperer/0/manifest.json"
2929

3030
private val DEFAULT_MANIFEST_PATH: Path = getToolkitsCommonCacheRoot()
3131
.resolve("aws")

plugins/amazonq/src/main/resources/META-INF/plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585

8686
<extensions defaultExtensionNs="com.intellij">
8787
<registryKey key="amazon.q.endpoint" description="Endpoint to use for Amazon Q"
88-
defaultValue="https://rts.gamma-us-west-2.codewhisperer.ai.aws.dev/" restartRequired="true"/>
88+
defaultValue="https://codewhisperer.us-east-1.amazonaws.com/" restartRequired="true"/>
8989
<registryKey key="inline.completion.rem.dev.use.rhizome" description="Defined by IntelliJ. Used for Amazon Q to display suggestions on remote."
9090
defaultValue="false" restartRequired="true"/>
9191
</extensions>

plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/core/credentials/sono/SonoConstants.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ const val IDENTITY_CENTER_ROLE_ACCESS_SCOPE = "sso:account:access"
1313

1414
@Deprecated("pending removal, merge into Q_SCOPES")
1515
val CODEWHISPERER_SCOPES = listOf(
16-
"codewhisperer_internal:completions",
17-
"codewhisperer_internal:analysis",
16+
"codewhisperer:completions",
17+
"codewhisperer:analysis",
1818
)
1919

2020
val Q_SCOPES = listOf(
21-
"codewhisperer_internal:conversations",
22-
"codewhisperer_internal:transformations",
23-
"codewhisperer_internal:taskassist",
24-
"codewhisperer_internal:completions",
25-
"codewhisperer_internal:analysis",
21+
"codewhisperer:conversations",
22+
"codewhisperer:transformations",
23+
"codewhisperer:taskassist",
24+
"codewhisperer:completions",
25+
"codewhisperer:analysis",
2626
)
2727

2828
val CODECATALYST_SCOPES = listOf(

0 commit comments

Comments
 (0)