提交 3e99f28e 编写于 作者: M Matt Bierner

Use `clear` instead of `dispose` when resetting disposables

Fixes #75283
上级 74496c8a
...@@ -181,7 +181,7 @@ class FormatOnPaste implements editorCommon.IEditorContribution { ...@@ -181,7 +181,7 @@ class FormatOnPaste implements editorCommon.IEditorContribution {
private _update(): void { private _update(): void {
// clean up // clean up
this._callOnModel.dispose(); this._callOnModel.clear();
// we are disabled // we are disabled
if (!this.editor.getConfiguration().contribInfo.formatOnPaste) { if (!this.editor.getConfiguration().contribInfo.formatOnPaste) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册