Skip to content

Commit

Permalink
fix: ts
Browse files Browse the repository at this point in the history
  • Loading branch information
omergulen committed Aug 27, 2024
1 parent 7fbf11a commit 0d432f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ export function activate(context: vscode.ExtensionContext) {
editor.document.getText(sel)
);
vscode.commands.executeCommand('editor.action.insertLineAfter')
.then(() => {
.then<void>(() => {
text.reduce((acc: Promise<any>, _text: string, index: number) => {
return acc.then(res => {
return new Promise(resolve => {
return new Promise<void>(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) => {
Expand Down

0 comments on commit 0d432f7

Please sign in to comment.