Skip to content

Commit 6636bfd

Browse files
committed
fix: Update diagnostic for Robocop 4.0 release after disablers module was rewritten
1 parent 6a7beb0 commit 6636bfd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ class MyRobocop(Robocop):
104104
async def run_check(self, ast_model, filename, source=None): # type: ignore
105105
await check_canceled()
106106

107-
if robocop_version >= (2, 4):
107+
if robocop_version >= (4, 0):
108+
from robocop.utils.disablers import DisablersFinder
109+
110+
disablers = DisablersFinder(ast_model)
111+
elif robocop_version >= (2, 4):
108112
from robocop.utils import DisablersFinder
109113

110114
disablers = DisablersFinder(filename=filename, source=source)

0 commit comments

Comments
 (0)