This commit is contained in:
chlafreniere 2020-03-31 20:00:40 -07:00
Родитель 5abfd80a64
Коммит ee8f53fbbc
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -87,8 +87,7 @@ 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();
let commandExecutionSettingValue: boolean = this._configurationService.getValue('notebook.allowCommandExecution'); this._isCommandExecutionSettingEnabled = this._configurationService.getValue('notebook.allowCommandExecution');
this._isCommandExecutionSettingEnabled = commandExecutionSettingValue ? commandExecutionSettingValue : false;
this._register(this._configurationService.onDidChangeConfiguration(e => { this._register(this._configurationService.onDidChangeConfiguration(e => {
if (e.affectsConfiguration('notebook.allowCommandExecution')) { if (e.affectsConfiguration('notebook.allowCommandExecution')) {