Skip to content

Commit 96ceae4

Browse files
authored
feat: support streaming query in autocomplete (#3097)
1 parent 9d0de26 commit 96ceae4

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/types/api/autocomplete.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,5 @@ export type AutocompleteEntityType =
5454
| 'external_data_source'
5555
| 'view'
5656
| 'column'
57-
| 'index';
57+
| 'index'
58+
| 'streaming_query';

src/utils/monaco/yql/generateSuggestions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const suggestionEntityToAutocomplete: Partial<Record<YQLEntity, AutocompleteEnti
2626
topic: ['pers_queue_group'],
2727
view: ['view'],
2828
tableIndex: ['table_index', 'index'],
29+
streamingQuery: ['streaming_query'],
2930
};
3031

3132
const commonSuggestionEntities: AutocompleteEntityType[] = ['dir', 'unknown', 'ext_sub_domain'];

tests/suites/sidebar/sidebar.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ test.describe('Test Sidebar', async () => {
130130

131131
// Press Ctrl+K to open hotkeys panel
132132
await page.keyboard.press('Control+k');
133-
await page.waitForTimeout(500); // Wait for animation
133+
await page.waitForTimeout(1000); // Wait for animation
134134

135135
// Check if hotkeys panel is visible and has the title
136136
await expect(sidebar.isHotkeysPanelVisible()).resolves.toBe(true);

0 commit comments

Comments
 (0)