mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 03:25:38 +00:00
Don't re-render markdown cells on initializeWebViewState
(#157173)
Fixes #156914 I don't really understand what `initializeWebViewState` is doing here but there are two things: - I've removed a list of renderers it creates and then never uses - I've removed the part where it calls back into `initializeMarkup`. This should have already been called during `_warmupViewport`
This commit is contained in:
parent
0f9323e411
commit
a97d84d375
1 changed files with 0 additions and 10 deletions
|
@ -929,13 +929,6 @@ var requirejs = (function() {
|
|||
}
|
||||
|
||||
private initializeWebViewState() {
|
||||
const renderers = new Set<INotebookRendererInfo>();
|
||||
for (const inset of this.insetMapping.values()) {
|
||||
if (inset.renderer) {
|
||||
renderers.add(inset.renderer);
|
||||
}
|
||||
}
|
||||
|
||||
this._preloadsCache.clear();
|
||||
if (this._currentKernel) {
|
||||
this._updatePreloadsFromKernel(this._currentKernel);
|
||||
|
@ -945,9 +938,6 @@ var requirejs = (function() {
|
|||
this._sendMessageToWebview({ ...inset.cachedCreation, initiallyHidden: this.hiddenInsetMapping.has(output) });
|
||||
}
|
||||
|
||||
const mdCells = [...this.markupPreviewMapping.values()];
|
||||
this.markupPreviewMapping.clear();
|
||||
this.initializeMarkup(mdCells);
|
||||
this._updateStyles();
|
||||
this._updateOptions();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue