diff --git a/src/vs/editor/contrib/format/formatActions.ts b/src/vs/editor/contrib/format/formatActions.ts index 1ddb6ca7a4a1bbd907e5849c54e9cac56120ac74..8b2798a496de81427097cbb296f721146901e275 100644 --- a/src/vs/editor/contrib/format/formatActions.ts +++ b/src/vs/editor/contrib/format/formatActions.ts @@ -181,7 +181,7 @@ class FormatOnPaste implements editorCommon.IEditorContribution { private _update(): void { // clean up - this._callOnModel.dispose(); + this._callOnModel.clear(); // we are disabled if (!this.editor.getConfiguration().contribInfo.formatOnPaste) {