Skip to content

Commit 643feb2

Browse files
committed
#RI-6277 - add current argument for check comment
1 parent 84a398d commit 643feb2

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
@@ -37,7 +37,7 @@ export const findSuggestionsByArg = (
3737
const [beforeOffsetArgs, [currentOffsetArg]] = args
3838

3939
const startCommentIndex = beforeOffsetArgs.findIndex((el) => el.startsWith('//'))
40-
if (startCommentIndex > -1) {
40+
if (startCommentIndex > -1 || currentOffsetArg?.startsWith('//')) {
4141
return {
4242
suggestions: asSuggestionsRef([]),
4343
helpWidget: { isOpen: false }

0 commit comments

Comments
 (0)