mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
Ensure cells in a readonly notebook cannot be edited (#228309)
This commit is contained in:
@@ -351,6 +351,7 @@ export class NotebookViewModel extends Disposable implements EditorFoldingStateD
|
||||
|
||||
updateOptions(newOptions: Partial<NotebookViewModelOptions>) {
|
||||
this._options = { ...this._options, ...newOptions };
|
||||
this._viewCells.forEach(cell => cell.updateOptions({ readonly: this._options.isReadOnly }));
|
||||
this._onDidChangeOptions.fire();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user