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) => {