diff --git a/src/vs/workbench/common/editor/untitledEditorModel.ts b/src/vs/workbench/common/editor/untitledEditorModel.ts index 89903fd66b7..17d7ff337a0 100644 --- a/src/vs/workbench/common/editor/untitledEditorModel.ts +++ b/src/vs/workbench/common/editor/untitledEditorModel.ts @@ -176,7 +176,7 @@ export class UntitledEditorModel extends BaseTextEditorModel implements IEncodin this.configuredEncoding = configuration && configuration.files && configuration.files.encoding; // Listen to content changes - this.textModelChangeListener = this.textEditorModel.onDidChangeContent(e => this.onModelContentChanged()); + this.textModelChangeListener = this.textEditorModel.onDidChangeContent(() => this.onModelContentChanged()); return model; }); diff --git a/src/vs/workbench/parts/preferences/browser/keybindingsEditorContribution.ts b/src/vs/workbench/parts/preferences/browser/keybindingsEditorContribution.ts index ed4b39ebc17..8f1daf2c030 100644 --- a/src/vs/workbench/parts/preferences/browser/keybindingsEditorContribution.ts +++ b/src/vs/workbench/parts/preferences/browser/keybindingsEditorContribution.ts @@ -177,7 +177,7 @@ export class KeybindingEditorDecorationsRenderer extends Disposable { this._updateDecorations = this._register(new RunOnceScheduler(() => this._updateDecorationsNow(), 500)); let model = this._editor.getModel(); - this._register(model.onDidChangeContent((e) => this._updateDecorations.schedule())); + this._register(model.onDidChangeContent(() => this._updateDecorations.schedule())); this._register(this._keybindingService.onDidUpdateKeybindings((e) => this._updateDecorations.schedule())); this._register({ dispose: () => { diff --git a/src/vs/workbench/parts/search/common/searchModel.ts b/src/vs/workbench/parts/search/common/searchModel.ts index 48ed4a14de6..1b293488fe8 100644 --- a/src/vs/workbench/parts/search/common/searchModel.ts +++ b/src/vs/workbench/parts/search/common/searchModel.ts @@ -169,7 +169,7 @@ export class FileMatch extends Disposable { private bindModel(model: IModel): void { this._model = model; - this._modelListener = this._model.onDidChangeContent(_ => { + this._modelListener = this._model.onDidChangeContent(() => { this._updateScheduler.schedule(); }); this._model.onWillDispose(() => this.onModelWillDispose()); diff --git a/src/vs/workbench/services/textfile/common/textFileEditorModel.ts b/src/vs/workbench/services/textfile/common/textFileEditorModel.ts index 484e41af3e5..21feb1b1ad7 100644 --- a/src/vs/workbench/services/textfile/common/textFileEditorModel.ts +++ b/src/vs/workbench/services/textfile/common/textFileEditorModel.ts @@ -444,7 +444,7 @@ export class TextFileEditorModel extends BaseTextEditorModel implements ITextFil this.setDirty(false); } - this.toDispose.push(this.textEditorModel.onDidChangeContent((e) => { + this.toDispose.push(this.textEditorModel.onDidChangeContent(() => { this.onModelContentChanged(); }));