notebook - set forceReload when having cell options

This commit is contained in:
Johannes Rieken 2020-06-18 09:56:06 +02:00
parent 2a9f87c3ce
commit 3281da1ce5

View file

@ -301,7 +301,7 @@ export class NotebookContribution extends Disposable implements IWorkbenchContri
}
const notebookInput = NotebookEditorInput.create(this.instantiationService, notebookUri, originalInput.getName(), info.id);
const notebookOptions = new NotebookEditorOptions({ ...options, cellOptions, override: false, index });
const notebookOptions = new NotebookEditorOptions({ ...options, cellOptions, override: false, index, forceReload: Boolean(cellOptions) });
return { override: this.editorService.openEditor(notebookInput, notebookOptions, group) };
}
}