Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add readonly to a few more properties #165563

Merged
merged 1 commit into from Nov 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/vs/base/browser/ui/actionbar/actionbar.ts
Expand Up @@ -84,19 +84,19 @@ export class ActionBar extends Disposable implements IActionRunner {

// Elements
domNode: HTMLElement;
protected actionsList: HTMLElement;
protected readonly actionsList: HTMLElement;

private _onDidBlur = this._register(new Emitter<void>());
private readonly _onDidBlur = this._register(new Emitter<void>());
readonly onDidBlur = this._onDidBlur.event;

private _onDidCancel = this._register(new Emitter<void>({ onWillAddFirstListener: () => this.cancelHasListener = true }));
private readonly _onDidCancel = this._register(new Emitter<void>({ onWillAddFirstListener: () => this.cancelHasListener = true }));
readonly onDidCancel = this._onDidCancel.event;
private cancelHasListener = false;

private _onDidRun = this._register(new Emitter<IRunEvent>());
private readonly _onDidRun = this._register(new Emitter<IRunEvent>());
readonly onDidRun = this._onDidRun.event;

private _onWillRun = this._register(new Emitter<IRunEvent>());
private readonly _onWillRun = this._register(new Emitter<IRunEvent>());
readonly onWillRun = this._onWillRun.event;

constructor(container: HTMLElement, options: IActionBarOptions = {}) {
Expand Down