Skip to content

Commit

Permalink
CB-5448 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyteleshev committed Dec 17, 2024
1 parent 4b04b7c commit 38c581b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@ export function useSqlDialectAutocompletion(data: ISQLEditorData): [Compartment,
const proposals = await optionsRef.data.getHintProposals(startPos, !context.explicit);
const limitIsMet = optionsRef.data.hintsLimitIsMet;
const options = getOptionsFromProposals(context.explicit, word.text, proposals);
const from = proposals[0]?.replacementOffset ?? word.from;

const result: CompletionResult = {
from: proposals[0]?.replacementOffset ?? word.from,
from,
options,
update(current, from, to, context) {
if (startPos > context.pos) {
Expand Down

0 comments on commit 38c581b

Please sign in to comment.