You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Markdown preview text is missing after tabs are switched #165188
*duplicateIssue identified as a duplicate of another issue(s)bugIssue identified by VS Code Team member as probable bughelp wantedIssues identified as good community contribution opportunitiesmarkdown-extThe Markdown extension: language features and preview
Text in the markdown preview from the modified file is missing after the tabs are switched. I'm writing my own preview extension and this behavior is not ideal. To fix it, I think the webview should "postMessage" when it's loaded and then the server should "postMessage" back with relevant content.
Looking into the code for this functionality makes sense as the preview hooks into the text change of the markdown file and updates accordingly. However when the preview is no longer active it disposes the preview from memory and when active again constructs itself back up directly from the resource URI which has not updated yet.
*duplicateIssue identified as a duplicate of another issue(s)bugIssue identified by VS Code Team member as probable bughelp wantedIssues identified as good community contribution opportunitiesmarkdown-extThe Markdown extension: language features and preview
Activity
DavidNaumann commentedon Nov 2, 2022
Looking into the code for this functionality makes sense as the preview hooks into the text change of the markdown file and updates accordingly. However when the preview is no longer active it disposes the preview from memory and when active again constructs itself back up directly from the resource URI which has not updated yet.
Refresh markdown preview when tab switch
mjbvz commentedon Dec 5, 2022
Duplicate of #147718