Skip to content

Commit bfd0159

Browse files
committed
update condition
1 parent 9a7de32 commit bfd0159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/remix-ui/editor/src/lib/providers/inlineCompletionProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class RemixInLineCompletionProvider implements monacoTypes.languages.Inli
3838

3939
try {
4040
const split = word.split('\n')
41-
if (!split.length) return
41+
if (split.length < 2) return
4242
const ask = split[split.length - 2].trimStart()
4343
if (split[split.length - 1].trim() === '' && ask.startsWith('///')) {
4444
// use the code generation model

0 commit comments

Comments
 (0)