Skip to content

Commit

Permalink
fix: use selected resource first
Browse files Browse the repository at this point in the history
  • Loading branch information
hackwaly committed Jun 19, 2023
1 parent 0348235 commit 3c22568
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integrations/vscode/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ module.exports = {
context.subscriptions.push(
vscode.commands.registerCommand(
"ocamlearlybird.startDebug",
async () => {
async (resourceUri) => {
try {
log.info(`on:ocamlearlybird.startDebug`);
const uri = vscode.window.activeTextEditor.document.uri;
const uri = resourceUri ?? vscode.window.activeTextEditor.document.uri;
const folder = vscode.workspace.getWorkspaceFolder(uri);
if (!folder) {
throw new Error(
Expand Down

0 comments on commit 3c22568

Please sign in to comment.