Skip to content

feat: report project trust to the Amazon Q language server - #159

Merged
dungdong-aws merged 1 commit into
Amazon-Q-Developer:mainfrom
dungdong-aws:feat/mcp-workspace-trust-state
Nov 11, 2026
Merged

dungdong-aws merged 1 commit into
Amazon-Q-Developer:mainfrom
dungdong-aws:feat/mcp-workspace-trust-state

Conversation

@dungdong-aws

Copy link
Copy Markdown
Contributor

No description provided.

@dungdong-aws
dungdong-aws requested a review from a team as a code owner November 6, 2026 19:24
class WorkspaceTrustHandler(private val project: Project, private val cs: CoroutineScope) : Disposable {
init {
ApplicationManager.getApplication().messageBus.connect(this).subscribe(
TrustedProjectsListener.TOPIC,
class WorkspaceTrustHandler(private val project: Project, private val cs: CoroutineScope) : Disposable {
init {
ApplicationManager.getApplication().messageBus.connect(this).subscribe(
TrustedProjectsListener.TOPIC,
init {
ApplicationManager.getApplication().messageBus.connect(this).subscribe(
TrustedProjectsListener.TOPIC,
object : TrustedProjectsListener {
ApplicationManager.getApplication().messageBus.connect(this).subscribe(
TrustedProjectsListener.TOPIC,
object : TrustedProjectsListener {
override fun onProjectTrusted(project: Project) = onTrustChanged(project)
object : TrustedProjectsListener {
override fun onProjectTrusted(project: Project) = onTrustChanged(project)

override fun onProjectUntrusted(project: Project) = onTrustChanged(project)
@dungdong-aws
dungdong-aws force-pushed the feat/mcp-workspace-trust-state branch from 7fd5dd2 to 48b699d Compare November 6, 2026 19:43
Send `awsClientCapabilities.q.workspaceTrust` at initialize and
`aws/updateConfiguration` (`aws.q.workspaceTrust`) when the project trust
changes, so the language server starts local MCP servers only in trusted
projects.
@dungdong-aws
dungdong-aws force-pushed the feat/mcp-workspace-trust-state branch from 48b699d to 55c6110 Compare November 10, 2026 20:45
@dungdong-aws
dungdong-aws merged commit ecd7795 into Amazon-Q-Developer:main Nov 11, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants