mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Check for configuration service
This commit is contained in:
@@ -87,13 +87,14 @@ export class CellModel extends Disposable implements ICellModel {
|
|||||||
// if the fromJson() method was already called and _cellGuid was previously set, don't generate another UUID unnecessarily
|
// if the fromJson() method was already called and _cellGuid was previously set, don't generate another UUID unnecessarily
|
||||||
this._cellGuid = this._cellGuid || generateUuid();
|
this._cellGuid = this._cellGuid || generateUuid();
|
||||||
this.createUri();
|
this.createUri();
|
||||||
this._isCommandExecutionSettingEnabled = this._configurationService.getValue('notebook.allowCommandExecution');
|
if (this._configurationService) {
|
||||||
|
this._isCommandExecutionSettingEnabled = this._configurationService.getValue('notebook.allowCommandExecution');
|
||||||
this._register(this._configurationService.onDidChangeConfiguration(e => {
|
this._register(this._configurationService.onDidChangeConfiguration(e => {
|
||||||
if (e.affectsConfiguration('notebook.allowCommandExecution')) {
|
if (e.affectsConfiguration('notebook.allowCommandExecution')) {
|
||||||
this._isCommandExecutionSettingEnabled = this._configurationService.getValue('notebook.allowCommandExecution');
|
this._isCommandExecutionSettingEnabled = this._configurationService.getValue('notebook.allowCommandExecution');
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public equals(other: ICellModel) {
|
public equals(other: ICellModel) {
|
||||||
|
|||||||
Reference in New Issue
Block a user