Skip to content

Check if YAML extension is installed before registering config schema#12952

Open
SparshGarg999 wants to merge 2 commits into
continuedev:mainfrom
SparshGarg999:fix/yaml-extension-failure
Open

Check if YAML extension is installed before registering config schema#12952
SparshGarg999 wants to merge 2 commits into
continuedev:mainfrom
SparshGarg999:fix/yaml-extension-failure

Conversation

@SparshGarg999

Copy link
Copy Markdown

Description

This PR resolves issue #12948 where extension activation fails when the Red Hat YAML extension (redhat.vscode-yaml) is not installed.

Writing to yaml.schemas user settings when the configuration is not registered throws CodeExpectedError: Unable to write to User Settings because yaml.schemas is not a registered configuration..

This is resolved by checking if the redhat.vscode-yaml extension is installed using vscode.extensions.getExtension before reading or updating the yaml.schemas settings configuration.

Test Plan

  1. Uninstall the Red Hat YAML extension.
  2. Start VS Code with the Continue extension enabled.
  3. Verify that the extension activates successfully without throwing a CodeExpectedError on yaml.schemas.

@SparshGarg999 SparshGarg999 requested a review from a team as a code owner July 6, 2026 13:17
@SparshGarg999 SparshGarg999 requested review from sestinj and removed request for a team July 6, 2026 13:17
@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jul 6, 2026
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@SparshGarg999

Copy link
Copy Markdown
Author

recheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant