feat(editor): add SQL block comment action
This commit is contained in:
1 parent
34a4f5d78a
commit
e18222628d
14 files changed
+127
-3
No files matched your search
@@ -9,6 +9,7 @@ import {
|
||||
supportsDatabaseNameCompletion,
|
||||
supportsDatabaseSchemaQualifier,
|
||||
supportsQueryTargetDatabaseListing,
|
||||
supportsQueryEditorBlockComments,
|
||||
supportsSqlInListPaste,
|
||||
supportsTableImport,
|
||||
supportsTransaction,
|
||||
@@ -123,6 +124,21 @@ describe("supportsSqlInListPaste", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("supportsQueryEditorBlockComments", () => {
|
||||
it("allows block comments in generic and SQL editors", () => {
|
||||
expect(supportsQueryEditorBlockComments(undefined)).toBe(true);
|
||||
expect(supportsQueryEditorBlockComments("mysql")).toBe(true);
|
||||
expect(supportsQueryEditorBlockComments("postgres")).toBe(true);
|
||||
expect(supportsQueryEditorBlockComments("sqlserver")).toBe(true);
|
||||
});
|
||||
|
||||
it("hides block comments in non-SQL editors", () => {
|
||||
expect(supportsQueryEditorBlockComments("redis")).toBe(false);
|
||||
expect(supportsQueryEditorBlockComments("mongodb")).toBe(false);
|
||||
expect(supportsQueryEditorBlockComments("elasticsearch")).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
describe("supportsTableImport", () => {
|
||||
it("enables OceanBase Oracle table import", () => {
|
||||
expect(supportsTableImport("oceanbase-oracle")).toBe(true);
|
||||
|
||||
Reference in new issue
Block a user