We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 167f9b2 commit 84a398dCopy full SHA for 84a398d
redisinsight/ui/src/pages/workbench/utils/searchSuggestions.ts
@@ -36,7 +36,7 @@ export const findSuggestionsByArg = (
36
const { prevCursorChar } = cursor
37
const [beforeOffsetArgs, [currentOffsetArg]] = args
38
39
- const startCommentIndex = [...beforeOffsetArgs, currentOffsetArg].findIndex((el) => el.startsWith('//'))
+ const startCommentIndex = beforeOffsetArgs.findIndex((el) => el.startsWith('//'))
40
if (startCommentIndex > -1) {
41
return {
42
suggestions: asSuggestionsRef([]),
0 commit comments