fix bug that doesn't register double click enabled on new notebook contexts (#12239)

This commit is contained in:
Kartik Arora
2020-09-11 14:42:13 -07:00
committed by GitHub
parent a567ff6de4
commit 3d81da9762
2 changed files with 2 additions and 0 deletions

View File

@@ -107,6 +107,7 @@ export class TextCellComponent extends CellView implements OnInit, OnChanges {
super();
this.setTurndownOptions();
this.markdownRenderer = this._instantiationService.createInstance(NotebookMarkdownRenderer);
this.doubleClickEditEnabled = this._configurationService.getValue('notebook.enableDoubleClickEdit');
this._register(toDisposable(() => {
if (this.markdownResult) {
this.markdownResult.dispose();

View File

@@ -113,6 +113,7 @@ export class NotebookComponent extends AngularDisposable implements OnInit, OnDe
super();
this.updateProfile();
this.isLoading = true;
this.doubleClickEditEnabled = this._configurationService.getValue('notebook.enableDoubleClickEdit');
this._register(this._configurationService.onDidChangeConfiguration(e => {
this.previewFeaturesEnabled = this._configurationService.getValue('workbench.enablePreviewFeatures');
}));