Use clear instead of dispose when resetting disposables

Fixes #75283
This commit is contained in:
Matt Bierner 2019-06-11 09:15:06 -07:00
parent 74496c8a24
commit 3e99f28ef9

View file

@ -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) {