Updating cell state when destorying it is not good

This commit is contained in:
rebornix
2020-02-20 16:03:32 -08:00
parent ff5e7462b2
commit b5804fa989
2 changed files with 1 additions and 6 deletions

View File

@@ -421,7 +421,7 @@ export class ExtHostNotebookEditor implements vscode.NotebookEditor {
public document: ExtHostNotebookDocument,
private _documentsAndEditors: ExtHostDocumentsAndEditors
) {
const regex = new RegExp(/cell_(\d)*\./g);
const regex = new RegExp(/cell_(\d*)\./g);
this._documentsAndEditors.onDidAddDocuments(documents => {
for (const data of documents) {
let textDocument = data.document;