Skip to content

Commit 03f6fe9

Browse files
authored
[ES|QL] Display Create lookup index as first suggestion (#241078)
## Summary Now "Create lookup index" is displayed as first suggestion. <img width="1153" height="432" alt="image" src="https://github.com/user-attachments/assets/b56c9f6c-3d48-418b-a878-4aa1c5e28f90" />
1 parent 24ae532 commit 03f6fe9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/platform/packages/shared/kbn-esql-ast/src/commands_registry/commands/join/autocomplete.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ describe('JOIN Autocomplete', () => {
122122
incomplete: true,
123123
kind: 'Issue',
124124
label: 'Create lookup index',
125-
sortText: '1A',
125+
sortText: '0',
126126
text: '',
127127
});
128128
});
@@ -197,7 +197,7 @@ describe('JOIN Autocomplete', () => {
197197
end: 37,
198198
start: 23,
199199
},
200-
sortText: '1A',
200+
sortText: '0',
201201
text: 'new_join_index',
202202
});
203203
});

src/platform/packages/shared/kbn-esql-ast/src/definitions/utils/autocomplete/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ export function getLookupIndexCreateSuggestion(
548548
}
549549
),
550550

551-
sortText: '1A',
551+
sortText: '0',
552552

553553
command: {
554554
id: `esql.lookup_index.create`,

0 commit comments

Comments
 (0)