mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
fix bug that doesn't register double click enabled on new notebook contexts (#12239)
This commit is contained in:
@@ -107,6 +107,7 @@ export class TextCellComponent extends CellView implements OnInit, OnChanges {
|
|||||||
super();
|
super();
|
||||||
this.setTurndownOptions();
|
this.setTurndownOptions();
|
||||||
this.markdownRenderer = this._instantiationService.createInstance(NotebookMarkdownRenderer);
|
this.markdownRenderer = this._instantiationService.createInstance(NotebookMarkdownRenderer);
|
||||||
|
this.doubleClickEditEnabled = this._configurationService.getValue('notebook.enableDoubleClickEdit');
|
||||||
this._register(toDisposable(() => {
|
this._register(toDisposable(() => {
|
||||||
if (this.markdownResult) {
|
if (this.markdownResult) {
|
||||||
this.markdownResult.dispose();
|
this.markdownResult.dispose();
|
||||||
|
|||||||
@@ -113,6 +113,7 @@ export class NotebookComponent extends AngularDisposable implements OnInit, OnDe
|
|||||||
super();
|
super();
|
||||||
this.updateProfile();
|
this.updateProfile();
|
||||||
this.isLoading = true;
|
this.isLoading = true;
|
||||||
|
this.doubleClickEditEnabled = this._configurationService.getValue('notebook.enableDoubleClickEdit');
|
||||||
this._register(this._configurationService.onDidChangeConfiguration(e => {
|
this._register(this._configurationService.onDidChangeConfiguration(e => {
|
||||||
this.previewFeaturesEnabled = this._configurationService.getValue('workbench.enablePreviewFeatures');
|
this.previewFeaturesEnabled = this._configurationService.getValue('workbench.enablePreviewFeatures');
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user