fix(saved-sql): 修复 SQL 库连接关联丢失与历史文件不可见
* fix: 持久化并显示 SQL 库连接关联 * fix: 补充 SQL 库关联状态翻译 * chore: 修复数据标签页策略格式 --------- Co-authored-by: zipg <4047349+zipg@users.noreply.github.com>
This commit is contained in:
1 parent
580b70e1d4
commit
445b6473f4
18 files changed
+336
-115
No files matched your search
@@ -40,16 +40,17 @@ describe("saved SQL execution targets", () => {
|
||||
expect(savedSqlExecutionTargetFromTab(undefined)).toBeUndefined();
|
||||
});
|
||||
|
||||
it("preserves the saved default target when an existing file is updated", () => {
|
||||
it("uses the current execution target when a file is saved", () => {
|
||||
expect(
|
||||
savedSqlDefaultTargetForWrite(
|
||||
{
|
||||
connectionId: "runtime-connection",
|
||||
database: "runtime_database",
|
||||
schema: "runtime_schema",
|
||||
},
|
||||
savedTarget,
|
||||
),
|
||||
).toEqual(savedTarget);
|
||||
savedSqlDefaultTargetForWrite({
|
||||
connectionId: "runtime-connection",
|
||||
database: "runtime_database",
|
||||
schema: "runtime_schema",
|
||||
}),
|
||||
).toEqual({
|
||||
connectionId: "runtime-connection",
|
||||
database: "runtime_database",
|
||||
schema: "runtime_schema",
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user