From a49d7312a512d585174f16837de75def7742efdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=A4der?= Date: Wed, 22 Nov 2023 11:13:16 +0100 Subject: [PATCH] Make the linter happy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Mäder --- .../plugin-ext/src/plugin/languages-utils.ts | 16 +++++++--------- packages/plugin-ext/src/plugin/types-impl.ts | 1 - 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/packages/plugin-ext/src/plugin/languages-utils.ts b/packages/plugin-ext/src/plugin/languages-utils.ts index 96d033d605b8b..8c2e6a70db676 100644 --- a/packages/plugin-ext/src/plugin/languages-utils.ts +++ b/packages/plugin-ext/src/plugin/languages-utils.ts @@ -58,13 +58,11 @@ export function serializeIndentation(indentationRules?: theia.IndentationRule): export function serializeAutoClosingPairs(pairs: theia.AutoClosingPair[] | undefined): SerializedAutoClosingPair[] | undefined { if (!pairs) { - return undefined + return undefined; }; - return pairs.map(pair => { - return { - open: pair.open, - close: pair.close, - notIn: pair.notIn ? pair.notIn.map(tokenType => SyntaxTokenType.toString(tokenType)) : undefined - } - }); -} \ No newline at end of file + return pairs.map(pair => ({ + open: pair.open, + close: pair.close, + notIn: pair.notIn ? pair.notIn.map(tokenType => SyntaxTokenType.toString(tokenType)) : undefined + })); +} diff --git a/packages/plugin-ext/src/plugin/types-impl.ts b/packages/plugin-ext/src/plugin/types-impl.ts index 0ef339ae03b8f..ecbe6b249a4d4 100644 --- a/packages/plugin-ext/src/plugin/types-impl.ts +++ b/packages/plugin-ext/src/plugin/types-impl.ts @@ -876,7 +876,6 @@ export enum SyntaxTokenType { RegEx = 3 } - @es5ClassCompat export class TextEdit {