Web IDE: image preview for lfs files does not work
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Work on this issue](https://contributors.gitlab.com/manage-issue?action=work&projectId=278964&issueIid=416855) - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=416855) </details> <!--IssueSummary end--> <!--- Please read this! Before opening a new issue, make sure to search for keywords in the issues filtered by the "regression" or "type::bug" label: - https://gitlab.com/gitlab-org/gitlab/issues?label_name%5B%5D=regression - https://gitlab.com/gitlab-org/gitlab/issues?label_name%5B%5D=type::bug and verify the issue you're about to submit isn't a duplicate. ---> ### Summary When using the new VSCode Web IDE, image files stored via Git LFS are not previewed/rendered. This applies for selecting the file directly and for the markdown preview if the file is included in a markdown file. ### Steps to reproduce 1. Clone your project 2. Activate git lfs: `git lfs install` 3. Track image files: `git lfs track "*.jpg"` 4. Add image file to your repository 5. push 6. Open the Web IDE 7. Open the image file ### Example Project https://gitlab.com/tulkas-hg/web-ide-markdown-preview-for-images ### What is the current *bug* behavior? Image files stored via git lfs are not rendered in the new VSCode Web IDE. #### LFS Image preview in Web IDE ![grafik](/uploads/859adf960399ccd9fb149e956f2918ba/grafik.png) #### Markdown preview in Web IDE including images stored via LFS ![grafik](/uploads/15665404850f67dfaa33b61a05c30315/grafik.png) ### What is the expected *correct* behavior? Image files stored via Git LFS should render using the Web IDE. It already works fine when using `Edit` or when browsing the project: - [LFS image](https://gitlab.com/tulkas-hg/web-ide-markdown-preview-for-images/-/blob/main/trees.jpg) ![lfs_image_in_project](/uploads/d6f50ecd4a2a3315a8982badbe6ea2fb/grafik.png) - [Markdown Preview](https://gitlab.com/tulkas-hg/web-ide-markdown-preview-for-images/-/blob/main/README.md) ![editor_lfs_markdown_preview](/uploads/e52d7ef2eb21bd4fb444b86b5fd4a267/grafik.png) ### Output of checks <!-- If you are reporting a bug on GitLab.com, uncomment below --> This bug happens on GitLab.com #### Results of GitLab environment info <!-- Input any relevant GitLab environment information if needed. --> - `GitLab Enterprise Edition 16.2.0-pre d1421d285ff`
issue