Skip to content

Fix/#841 fix file content not loading#842

Open
Ivanruii wants to merge 2 commits intodevfrom
fix/#841-fix-file-content-not-loading
Open

Fix/#841 fix file content not loading#842
Ivanruii wants to merge 2 commits intodevfrom
fix/#841-fix-file-content-not-loading

Conversation

@Ivanruii
Copy link
Copy Markdown
Collaborator

@Ivanruii Ivanruii commented May 11, 2026

Webview HTML was being assigned before registering the onDidReceiveMessage listener, causing a race condition: the webview could emit READY/WEBVIEW_READY before the extension was listening, losing the initial message and never delivering the file content.

For files inside the workspace, activation overhead masked the race. For external files, the webview won the race consistently → empty editor.

Closes #841

@manudous manudous self-requested a review May 11, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[VSCode Extension] Fix file content not loading for files outside the workspace

1 participant