Skip to content

Fix/#841 fix file content not loading#842

Merged
manudous merged 2 commits into
devfrom
fix/#841-fix-file-content-not-loading
May 11, 2026
Merged

Fix/#841 fix file content not loading#842
manudous merged 2 commits into
devfrom
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
@manudous manudous merged commit 8af77bf into dev May 11, 2026
3 checks passed
@manudous manudous deleted the fix/#841-fix-file-content-not-loading branch May 11, 2026 15:29
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

2 participants