confluentinc / confluentinc/vscode

Handle 50MB limit for multi-message preview

Open
#1,069 1 comment 0 reactions 1 assignee Claimed by @shouples View on GitHub
message viewer
Dominant language
TypeScript
Stars
34
Forks
17
Avg merge
1d 22h
Merged PRs (30d)
8

Description

When clicking "Open consumed messages as JSON":
![Image](https://github.com/user-attachments/assets/9b0e862f-2f36-4cc6-93fa-d8fb051bed4c)

We may silently hit a 50MB file/uri limit set by VS Code, only visible in the Extension Host output channel (when no documents show up after clicking the button above):
```
CodeExpectedError: cannot open confluent.topic.message:-.json?%257B%2522partition%2522%253A-1%252C%2522offset%2522%253A-1%257D. Detail: Files above 50MB cannot be synchronized with extensions.
at T6e.$tryOpenDocument (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:713:8555)
```
https://github.com/microsoft/vscode/blob/c99a5229bd75503ca45097feb42791a4379a344e/src/vs/workbench/api/browser/mainThreadDocuments.ts#L252

Caused from the migration to a document provider in https://github.com/confluentinc/vscode/pull/1026

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.