You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: component browser: Set as Default Version and Always Use Latest fail with a configuration error #312
Right-clicking a component's version dropdown in the Component Browser offers Set as Default Version and Always Use Latest. Both fail immediately with an error notification, and neither preference is saved.
The completion provider reads the same two preferences when choosing which version to offer for a component, so that behaviour is unreachable as well: nothing can ever write them.
Steps to reproduce
Configure a component source under gitlabComponentHelper.componentSources and let discovery populate the cache.
Run GitLab CI: Browse Components.
Expand a source and a project, and click Load Versions on a component that has more than one version.
Right-click the version dropdown that appears.
Click Set as Default Version. Repeat from step 4 with Always Use Latest.
Expected behavior
The chosen preference is saved, and completion offers that version for the component thereafter — the pinned version for Set as Default Version, or the highest semantic version for Always Use Latest.
Actual behavior
An error notification appears and nothing is saved. Each action names the setting it tried to write:
Error setting default version: CodeExpectedError: Unable to write to User Settings because
gitlabComponentHelper.defaultVersions is not a registered configuration.
Error setting always use latest: CodeExpectedError: Unable to write to User Settings because
gitlabComponentHelper.alwaysUseLatest is not a registered configuration.
Component context (if applicable)
No response
Minimal .gitlab-ci.yml snippet
Not applicable — the failure is in the Component Browser, reached from the command palette. No particular file content is needed.
Extension logs
[ComponentBrowser] Error setting default version: CodeExpectedError: Unable to write to User Settings because gitlabComponentHelper.defaultVersions is not a registered configuration.
[ComponentBrowser] Error setting always use latest: CodeExpectedError: Unable to write to User Settings because gitlabComponentHelper.alwaysUseLatest is not a registered configuration.
Affected area
Component Browser
Extension version
0.17.15
VS Code version
1.139.0
Node.js version
24.x
Operating system
macOS
Pre-submit checks
I searched existing issues and did not find a duplicate.
I can reproduce this on the latest version from main/beta.
I included a minimal YAML snippet and relevant logs.
Activity