Skip to content

fix: restrict aws.dev.amazonqLsp to machine scope#120

Merged
aseemxs merged 3 commits into
mainfrom
fix/amazonq-lsp-dev-setting-scope
Jun 18, 2026
Merged

fix: restrict aws.dev.amazonqLsp to machine scope#120
aseemxs merged 3 commits into
mainfrom
fix/amazonq-lsp-dev-setting-scope

Conversation

@aseemxs

@aseemxs aseemxs commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Problem

The aws.dev.amazonqLsp developer setting is not declared in the extension manifest, so it has no scope restriction and can be set from workspace settings. Developer overrides like this should only be configurable at the user/machine level.

Change

  • Declare aws.dev.amazonqLsp in contributes.configuration with "scope": "machine", so it is only settable in user/machine settings and not by a workspace's .vscode/settings.json.
  • Add a unit test asserting the setting is declared with machine scope.

Testing

  • Verified manually that the setting is honored from user/machine settings and ignored when set at the workspace level.
  • Added a regression test for the scope declaration.

Declare the aws.dev.amazonqLsp developer setting in the extension
manifest with "scope": "machine" so it is only configurable at the
user/machine level and not via workspace settings. Adds a test
asserting the scope declaration.
@aseemxs
aseemxs requested a review from a team as a code owner June 16, 2026 22:35
@aseemxs aseemxs changed the title fix(amazonq): restrict aws.dev.amazonqLsp to machine scope fix: restrict aws.dev.amazonqLsp to machine scope Jun 16, 2026
Comment thread packages/amazonq/package.json Outdated
"type": "object",
"scope": "machine",
"default": {},
"markdownDescription": "Developer use only"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Developer user only" should probably be defined as an NLS (localization) placeholder (similar to other markdownDescriptions in the file, e.g.: %AWS.configuration.description.amazonq.proxy.developerUserOnly%

With the actual text stored in packages/core/package.nls.json

@kmmcclai kmmcclai left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nit about localization, otherwise LGTM.

Use an NLS placeholder for the aws.dev.amazonqLsp markdownDescription
and store the text in package.nls.json, consistent with the other
configuration descriptions.
@aseemxs
aseemxs merged commit bef43a2 into main Jun 18, 2026
30 of 32 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.

3 participants