@@ -39,7 +39,7 @@ def __init__(self, parent: "RobotLanguageServerProtocol") -> None:
39
39
self .line_separator = os .linesep
40
40
self .short_test_name_length = 18
41
41
self .setting_and_variable_name_length = 14
42
- self .robocop_installed_message_shown = False
42
+ self .is_robocop_notification_shown = False
43
43
44
44
def get_tidy_config (self , document : TextDocument ) -> RoboTidyConfig :
45
45
folder = self .parent .workspace .get_workspace_folder (document .uri )
@@ -65,14 +65,15 @@ def format(
65
65
** further_options : Any ,
66
66
) -> Optional [List [TextEdit ]]:
67
67
if (get_robot_version () >= (5 , 0 )) and self .robocop_installed and self .robocop_version >= (6 , 0 ):
68
- if not self .robocop_installed_message_shown and self .robotidy_installed :
68
+ if not self .is_robocop_notification_shown and self .robotidy_installed :
69
69
self .parent .window .show_message (
70
- "`robotframework-robocop >= 6.0` is installed and will be used for formatting.\n "
71
- "`robotframework-tidy` is also detected in the workspace. "
72
- "It is not needed as `robocop` handles formatting tasks.\n " ,
70
+ "`robotframework-robocop >= 6.0` is installed and will be used for formatting.\n \n "
71
+ "`robotframework-tidy` is also detected in the workspace, but its use is redundant.\n "
72
+ "Robocop fully supports all formatting tasks and provides a more comprehensive solution.\n \n "
73
+ "Note: The use of `robotframework-tidy` is deprecated and should be avoided in favor of Robocop." ,
73
74
MessageType .INFO ,
74
75
)
75
- self .robocop_installed_message_shown = True
76
+ self .is_robocop_notification_shown = True
76
77
77
78
return self .format_robocop (document , options , ** further_options )
78
79
0 commit comments