notebooks: fix renderer message passing being broken

This commit is contained in:
Connor Peet 2020-06-22 15:47:10 -07:00
parent c5e1438a6e
commit aa01066b71
No known key found for this signature in database
GPG key ID: CF8FD2EA0DBC61BD

View file

@ -494,10 +494,6 @@ export class ExtHostNotebookDocument extends Disposable implements vscode.Notebo
cell.detachTextDocument();
}
}
allEditors() {
return this._documentsAndEditors.allEditors();
}
}
export class NotebookEditorCellEditBuilder implements vscode.NotebookEditorCellEdit {
@ -1097,8 +1093,8 @@ export class ExtHostNotebookController implements ExtHostNotebookShape, ExtHostN
}
alreadyRegistered.add(renderer);
for (const editor of document.allEditors()) {
const comm = this._webviewComm.get(editor.id);
for (const editorId of this._editors.keys()) {
const comm = this._webviewComm.get(editorId);
if (comm) {
renderer.resolveNotebook(document, comm);
}