Skip to content

Commit

Permalink
Focus current file before debugging (#147)
Browse files Browse the repository at this point in the history
* Focus current file before debugging

* fix lint
  • Loading branch information
paulacamargo25 authored Nov 29, 2023
1 parent 4718b3b commit 4bf3b6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/extension/extensionInit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ export async function registerDebugger(context: IExtensionContext): Promise<void
executeCommand('workbench.action.debug.selectandstart');
} else {
await executeCommand('debug.addConfiguration');
executeCommand('workbench.action.debug.start');
if (file) await window.showTextDocument(file);

Check warning on line 92 in src/extension/extensionInit.ts

View workflow job for this annotation

GitHub Actions / Lint

Expected { after 'if' condition

Check warning on line 92 in src/extension/extensionInit.ts

View workflow job for this annotation

GitHub Actions / Tests (ubuntu-latest, 3.7)

Expected { after 'if' condition

Check warning on line 92 in src/extension/extensionInit.ts

View workflow job for this annotation

GitHub Actions / Tests (ubuntu-latest, 3.11)

Expected { after 'if' condition

Check warning on line 92 in src/extension/extensionInit.ts

View workflow job for this annotation

GitHub Actions / Tests (ubuntu-latest, 3.8)

Expected { after 'if' condition

Check warning on line 92 in src/extension/extensionInit.ts

View workflow job for this annotation

GitHub Actions / Tests (ubuntu-latest, 3.10)

Expected { after 'if' condition

Check warning on line 92 in src/extension/extensionInit.ts

View workflow job for this annotation

GitHub Actions / Tests (ubuntu-latest, 3.9)

Expected { after 'if' condition

Check warning on line 92 in src/extension/extensionInit.ts

View workflow job for this annotation

GitHub Actions / Tests (windows-latest, 3.7)

Expected { after 'if' condition

Check warning on line 92 in src/extension/extensionInit.ts

View workflow job for this annotation

GitHub Actions / Tests (windows-latest, 3.9)

Expected { after 'if' condition

Check warning on line 92 in src/extension/extensionInit.ts

View workflow job for this annotation

GitHub Actions / Tests (windows-latest, 3.11)

Expected { after 'if' condition

Check warning on line 92 in src/extension/extensionInit.ts

View workflow job for this annotation

GitHub Actions / Tests (windows-latest, 3.8)

Expected { after 'if' condition

Check warning on line 92 in src/extension/extensionInit.ts

View workflow job for this annotation

GitHub Actions / Tests (windows-latest, 3.10)

Expected { after 'if' condition
executeCommand('workbench.action.debug.start', file?.toString());
}
}),
);
Expand Down

0 comments on commit 4bf3b6a

Please sign in to comment.