Skip to content

Commit f24f6a8

Browse files
committed
fix: dont show completion right after ...
closes #305
1 parent 377aa9d commit f24f6a8

File tree

1 file changed

+9
-0
lines changed
  • packages/language_server/src/robotcode/language_server/robotframework/parts

1 file changed

+9
-0
lines changed

packages/language_server/src/robotcode/language_server/robotframework/parts/completion.py

+9
Original file line numberDiff line numberDiff line change
@@ -2130,6 +2130,15 @@ def _complete_KeywordCall_or_Fixture( # noqa: N802
21302130
if keyword_token is None or position <= range_from_token(keyword_token).end:
21312131
return None
21322132

2133+
if (
2134+
position == range_from_token(token_at_position).start
2135+
and len(tokens_at_position) >= 3
2136+
and tokens_at_position[-2].type == Token.ARGUMENT
2137+
and not tokens_at_position[-2].value
2138+
and tokens_at_position[-3].type == Token.CONTINUATION
2139+
):
2140+
return None
2141+
21332142
keyword_doc_and_token = self.get_keyworddoc_and_token_from_position(
21342143
keyword_token.value,
21352144
keyword_token,

0 commit comments

Comments
 (0)