Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ private class AmazonQServerInstance(private val project: Project, private val cs
capabilities = createClientCapabilities()
clientInfo = createClientInfo()
workspaceFolders = createWorkspaceFolders(project)
initializationOptions = createExtendedClientMetadata()
initializationOptions = createExtendedClientMetadata(project)
}

init {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

package software.aws.toolkits.jetbrains.services.amazonq.lsp.model

import com.intellij.openapi.project.Project
import software.aws.toolkits.jetbrains.services.telemetry.ClientMetadata

data class ExtendedClientMetadata(
Expand All @@ -12,6 +13,7 @@
data class AwsMetadata(
val clientInfo: ClientInfoMetadata,
val awsClientCapabilities: AwsClientCapabilities,
val contextConfiguration: ContextConfiguration?,
)

data class AwsClientCapabilities(
Expand All @@ -34,7 +36,11 @@
val version: String,
)

fun createExtendedClientMetadata(): ExtendedClientMetadata {
data class ContextConfiguration(
val workspaceIdentifier: String?,
)

fun createExtendedClientMetadata(project: Project): ExtendedClientMetadata {
val metadata = ClientMetadata.getDefault()
return ExtendedClientMetadata(
aws = AwsMetadata(
Expand All @@ -51,6 +57,9 @@
q = DeveloperProfiles(
developerProfiles = true
)
),
contextConfiguration = ContextConfiguration(
workspaceIdentifier = project.getBasePath()

Check notice on line 62 in plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/model/ExtendedClientMetadata.kt

View workflow job for this annotation

GitHub Actions / qodana

Accessor call that can be replaced with property access syntax

Use of getter method instead of property access syntax

Check notice

Code scanning / QDJVMC

Accessor call that can be replaced with property access syntax Note

Use of getter method instead of property access syntax
)
)
)
Expand Down
Loading