mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-29 19:59:19 +01:00
Remove unusued arguments
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
@@ -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: () => {
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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();
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user