Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Commit 2d85676

Browse files
committed
fix term suggestions after space in incomplete term
1 parent 5fe78bf commit 2d85676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/dfdElements/outputPortEditUi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class MonacoEditorDfdBehaviorCompletionProvider implements monaco.languages.Comp
188188
return {
189189
suggestions: this.getInputCompletions(model, position, availableInputs),
190190
};
191-
} else if (lastWord == "if" || (hasIfKeyword && !hasFromKeyword && !line.endsWith(" "))) {
191+
} else if (lastWord == "if" || ["|", "&", "(", "!"].includes(lastWord[lastWord.length - 1])) {
192192
return {
193193
suggestions: [
194194
...this.getConstantsCompletions(model, position),

0 commit comments

Comments
 (0)