Skip to content

Commit

Permalink
fix: run selected text with run task (#1186)
Browse files Browse the repository at this point in the history
  • Loading branch information
scnwwu committed Sep 4, 2024
1 parent 37d4a8b commit 4fa0b90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/src/components/tasks/SasTasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ export async function runSasFileTask(

const textDocument = await getTextDocumentFromFile(file);
const parameters = getCodeDocumentConstructionParameters(textDocument, {
selections:
file === undefined || file.trim() === ""
? window.activeTextEditor?.selections
: undefined,
preamble,
postamble,
});
Expand Down

0 comments on commit 4fa0b90

Please sign in to comment.