feat(editor): SQL editor execution button config toggle & optimization
- 在 SQL 编辑器的左侧添加每条语句的执行按钮 - 支持通过快捷键和右键菜单执行语句 - 增加多语言支持的相关文本描述
This commit is contained in:
12 files changed
+266
-30
No files matched your search
@@ -129,6 +129,13 @@ test("defaults dangerous SQL confirmation to enabled", () => {
|
||||
assert.equal(normalizeEditorSettings({ confirmDangerousSqlExecution: false }).confirmDangerousSqlExecution, false);
|
||||
});
|
||||
|
||||
test("defaults statement run buttons to enabled and preserves saved booleans", () => {
|
||||
assert.equal(DEFAULT_EDITOR_SETTINGS.showStatementRunButtons, true);
|
||||
assert.equal(normalizeEditorSettings({}).showStatementRunButtons, true);
|
||||
assert.equal(normalizeEditorSettings({ showStatementRunButtons: false }).showStatementRunButtons, false);
|
||||
assert.equal(normalizeEditorSettings({ showStatementRunButtons: "nope" as any }).showStatementRunButtons, true);
|
||||
});
|
||||
|
||||
test("defaults unsaved SQL close confirmation to enabled", () => {
|
||||
assert.equal(DEFAULT_EDITOR_SETTINGS.confirmUnsavedSqlClose, true);
|
||||
assert.equal(normalizeEditorSettings({}).confirmUnsavedSqlClose, true);
|
||||
|
||||
Reference in new issue
Block a user