mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
Mark most Event properties as readonly
We want to prevent mistaken changes that do something like this:
```ts
foo.onEvent = () => { ... };
```
When they almost always mean:
```ts
foo.onEvent(() => { ... })
```
This commit is contained in:
@@ -178,7 +178,7 @@ export class NotebookViewModel extends Disposable implements EditorFoldingStateD
|
||||
public readonly id: string;
|
||||
private _foldingRanges: FoldingRegions | null = null;
|
||||
private _onDidFoldingStateChanged = new Emitter<void>();
|
||||
onDidFoldingStateChanged: Event<void> = this._onDidFoldingStateChanged.event;
|
||||
readonly onDidFoldingStateChanged: Event<void> = this._onDidFoldingStateChanged.event;
|
||||
private _hiddenRanges: ICellRange[] = [];
|
||||
private _focused: boolean = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user