microsoft / microsoft/azure-devops-extension-sdk
ms.vss-code-web.content-renderer-collection gets binary rawContent passed as UTF-8 - Data loss
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 159
- Forks
- 53
- PR merge metrics
- No merged PRs in 30d
Description
I registered an extension to the Repos/File/Preview-Pane to display some binary filecontent using this extensionpoint:
"type": "ms.vss-code-web.content-renderer",
"description": "MyBinHexDisplay",
"targets": [
"ms.vss-code-web.content-renderer-collection"
],
Everything works ok, but the callback-method renderContent(rawContent, options) is being called by havin rawContent containing a string and UTF-8 encoded, which causes in data loss, because higher binarydata is just being skipped by encoder.
How can I retreive the git-file´s correct binary content? When being called my extension does not know the path or current selection of that item. Just the rawItem.
Thanks for help
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the ms.vss-code-web.content-renderer-collection registration and the renderContent(rawContent, options) callback contract first. Reproduce the behavior with a binary file and inspect rawContent and rawItem, including whether the extension receives a path or current selection. Done means identifying a supported way to obtain the original binary content or documenting the SDK limitation and its implications.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, developer-experience
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100