feat(editor): support executing all SQL from blank lines
This commit is contained in:
18 files changed
+82
-11
No files matched your search
@@ -23,6 +23,13 @@ describe("executionCandidateForMode", () => {
|
||||
expect(executionCandidateForMode([all], "all")).toBe(all);
|
||||
});
|
||||
|
||||
it("falls back to all SQL only when blank-line execution is enabled", () => {
|
||||
const all = candidate("all", ["all"]);
|
||||
|
||||
expect(executionCandidateForMode([all], "current", { executeAllOnBlankLine: false })).toBeNull();
|
||||
expect(executionCandidateForMode([all], "current", { executeAllOnBlankLine: true })).toBe(all);
|
||||
});
|
||||
|
||||
it("uses the deduplicated candidate when one statement is both current and all", () => {
|
||||
const currentAndAll = candidate("all", ["cursor", "all"]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user