Replies: 1 comment 4 replies
-
No, unfortunately, there isn’t a way to configure the RobotCode extension to automatically resolve imports from a central
Solutions:
Conclusion:It’s best to adopt a modular resource structure and only import what’s truly needed to avoid performance and maintainability issues. However, if you want to stick to your centralized solution, you can suppress RobotCode warnings either in specific files or globally for the project. For more details on this topic and potential issues with centralized |
Beta Was this translation helpful? Give feedback.
-
I have structured my Robot Framework project such that all libraries and shared resources are imported in a single file (common.resource), and this file is then imported in individual test case files. I have not imported libraries in the individual keyword resource files to avoid redundancy, as they are already included in common.resource. While this setup executes without issues, my IDE (VS Code extension) shows errors in the individual keyword resource files because it doesn't recognize the libraries and resources declared in common.resource. Explicitly importing common.resource in each keyword file creates circular import warnings, which I want to avoid. Is there a way to configure the extension to prioritize resolving imports from common.resource automatically for all files?
Beta Was this translation helpful? Give feedback.
All reactions