From 5cfb9f15b46e62069602ea0972f7aaf3845c432f Mon Sep 17 00:00:00 2001 From: Kai Saba Date: Thu, 12 Dec 2024 18:47:25 +0100 Subject: [PATCH] cleanup: remove unecessary constructor for LockedCodeError --- src/tools/utils/editorOperationUtils.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/tools/utils/editorOperationUtils.ts b/src/tools/utils/editorOperationUtils.ts index 096dfa7..a3e4a6d 100644 --- a/src/tools/utils/editorOperationUtils.ts +++ b/src/tools/utils/editorOperationUtils.ts @@ -2,13 +2,7 @@ import * as monaco from 'monaco-editor' import { ValidAnnotatedEditOperation } from 'vscode/vscode/vs/editor/common/model' import { excludeRanges } from './rangeUtils' -export class LockedCodeError extends Error { - constructor (message: string) { - super(message) - this.name = 'LockedCodeError' - Object.setPrototypeOf(this, LockedCodeError.prototype) - } -} +export class LockedCodeError extends Error {} function createNewOperation ( oldOperation: ValidAnnotatedEditOperation,