mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 09:38:38 +01:00
Fix markdown preview not setting context properly on first creation
Fixes #50558
This commit is contained in:
@@ -116,6 +116,8 @@ export class MarkdownPreviewManager implements vscode.WebviewPanelSerializer {
|
||||
this.topmostLineMonitor,
|
||||
this.contributions);
|
||||
|
||||
vscode.commands.executeCommand('setContext', MarkdownPreviewManager.markdownPreviewActiveContextKey, true);
|
||||
|
||||
return this.registerPreview(preview);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user