diff options
Diffstat (limited to 'src/vs/editor/common/model/textModelPart.ts')
-rw-r--r-- | src/vs/editor/common/model/textModelPart.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vs/editor/common/model/textModelPart.ts b/src/vs/editor/common/model/textModelPart.ts index 7a37fda1f3a..ef061c2ba9c 100644 --- a/src/vs/editor/common/model/textModelPart.ts +++ b/src/vs/editor/common/model/textModelPart.ts @@ -3,12 +3,13 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ -import { IDisposable } from 'vs/base/common/lifecycle'; +import { Disposable } from 'vs/base/common/lifecycle'; -export class TextModelPart implements IDisposable { +export class TextModelPart extends Disposable { private _isDisposed = false; - public dispose(): void { + public override dispose(): void { + super.dispose(); this._isDisposed = true; } protected assertNotDisposed(): void { |