From 0d432f716d6c2e012262f4fa032c3ffc07a0b8aa Mon Sep 17 00:00:00 2001 From: Omer Gulen Date: Tue, 27 Aug 2024 11:19:43 +0200 Subject: [PATCH] fix: ts --- src/extension.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extension.ts b/src/extension.ts index 91ebe6d..66cc7ee 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -13,10 +13,10 @@ export function activate(context: vscode.ExtensionContext) { editor.document.getText(sel) ); vscode.commands.executeCommand('editor.action.insertLineAfter') - .then(() => { + .then(() => { text.reduce((acc: Promise, _text: string, index: number) => { return acc.then(res => { - return new Promise(resolve => { + return new Promise(resolve => { const logToInsert = getLogStatementWithText(_text, editor.document.languageId); const range = new vscode.Range(editor.selections[index].start, editor.selections[index].end); editor.edit((editBuilder: vscode.TextEditorEdit) => {