Skip to content

Commit d510a65

Browse files
committed
fix(langserver): don't show deprecation message for tags starting with an hyphen in RF7
fixes [BUG] #212
1 parent a5edea3 commit d510a65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/robot/src/robotcode/robot/diagnostics/namespace_analyzer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ def visit_TestTags(self, node: Statement) -> None: # noqa: N802
10881088
)
10891089

10901090
def visit_Tags(self, node: Statement) -> None: # noqa: N802
1091-
if get_robot_version() >= (6, 0):
1091+
if (6, 0) < get_robot_version() < (7, 0):
10921092
for tag in node.get_tokens(Token.ARGUMENT):
10931093
if tag.value and tag.value.startswith("-"):
10941094
self.append_diagnostics(

0 commit comments

Comments
 (0)