Skip to content

Commit 84a398d

Browse files
committed
Revert "#RI-6277 - add current argument for check comment"
This reverts commit 167f9b2.
1 parent 167f9b2 commit 84a398d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redisinsight/ui/src/pages/workbench/utils/searchSuggestions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const findSuggestionsByArg = (
3636
const { prevCursorChar } = cursor
3737
const [beforeOffsetArgs, [currentOffsetArg]] = args
3838

39-
const startCommentIndex = [...beforeOffsetArgs, currentOffsetArg].findIndex((el) => el.startsWith('//'))
39+
const startCommentIndex = beforeOffsetArgs.findIndex((el) => el.startsWith('//'))
4040
if (startCommentIndex > -1) {
4141
return {
4242
suggestions: asSuggestionsRef([]),

0 commit comments

Comments
 (0)