chore: user-agent reports extension version instead of vscode version#38
Merged
colinmoynes merged 1 commit intomainfrom Apr 2, 2026
Merged
chore: user-agent reports extension version instead of vscode version#38colinmoynes merged 1 commit intomainfrom
colinmoynes merged 1 commit intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This is a maintenance PR that refactors the user-agent string construction in the CloudsmithAPI module. The changes improve code organization by extracting the extension version and constructing the user-agent string at module initialization time, rather than loading the entire package.json object and constructing the string inline on each request.
Changes:
- Extract just the version from package.json instead of loading the entire object
- Create a module-level constant for the user-agent string
- Use the new constant when setting the User-Agent header
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
colinmoynes
approved these changes
Apr 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📄 Summary
Briefly describe the purpose of this pull request. What problem does it solve or feature does it add?
🔍 Related Issues
Link to any related GitHub issues (e.g.,
Fixes #12,Closes #34):🧪 Type of Change
Please check the relevant type tag for this PR title:
[FIX]Bug fix[NEW]New thing[REFACTOR]Internal changes such as code restructuring or optimization that does not alter functionality[DOC]Documentation-only changes[CHORE]Maintenance, cleanup, or CI configuration🧪 How Has This Been Tested?
Describe how you tested your changes. Include CI runs, local tests, manual verification, or screenshots if applicable.
📸 Screenshots (if applicable)
If UI or logs are affected, include before/after screenshots or output.
✅ Checklist