-
+
item.key === QueryTabs.JSON) : TAB_BAR_ITEMS} value={currentTab} onChange={setCurrentTab} />
{currentTab === QueryTabs.JSON && {
theme={theme}
language="json"
/>}
- {currentTab === QueryTabs.Table && }
- {currentTab === QueryTabs.PLAN && }
+ {!isSearch && currentTab === QueryTabs.Table && }
+ {!isSearch && currentTab === QueryTabs.PLAN && }
);
diff --git a/src/test/contributor/cbsCtlCodeCompletion.test.ts b/src/test/contributor/cbsCtlCodeCompletion.test.ts
new file mode 100644
index 00000000..c62b3de2
--- /dev/null
+++ b/src/test/contributor/cbsCtlCodeCompletion.test.ts
@@ -0,0 +1,149 @@
+import * as assert from 'assert';
+import * as vscode from 'vscode';
+import * as path from 'path';
+import * as os from 'os';
+import * as fs from 'fs';
+import { AutocompleteVisitor } from '../../commands/fts/SearchWorkbench/contributor/autoCompleteVisitor';
+import { consistencyCbsContributor } from '../../commands/fts/SearchWorkbench/contributor/consistencyCbsContributor';
+import { ctlCbsContributor } from '../../commands/fts/SearchWorkbench/contributor/ctlCbsContributor';
+
+
+
+
+suite('CBSCtlCodeCompletion Test Suite', () => {
+ let autocompleteVisitor: AutocompleteVisitor;
+ let tempDir: string;
+
+ setup(async () => {
+ autocompleteVisitor = new AutocompleteVisitor();
+ tempDir = await fs.promises.mkdtemp(path.join(os.tmpdir(), 'vscode-test-'));
+ });
+
+ teardown(async () => {
+ await fs.promises.rm(tempDir, { recursive: true, force: true });
+ });
+
+ const getCompletions = async (content: string): Promise