feat: add Go to Definition and Hover support for Gherkin steps#16
Conversation
- Add DefinitionProvider for navigating from Gherkin steps to Robot Framework keywords - Add HoverProvider for displaying keyword information on hover - Support for parsing .resource files in steps directories - Intelligent keyword matching with variable normalization - Extension metadata updates for enhanced Gherkin support
|
I know chances are low for pull requests to be merged. But I had to try to contribute a small quality of life change for those of us who still use this everyday. Thank you @d-biehl for all your hard work. I hope someday this extension gets merged into robotcode. |
|
Thanks. It would be great if it works. Where can I find /get this file "robotcode-gherkin-extended-0.4.0.vsix"? |
|
Hi Rene, https://github.com/PcGnCLwnCm9EgY56mAmL/robotframework-gherkin-parser/releases/tag/v0.4.0 I have the release there. I'll try and check if I might get an microsoft publisher account to publish it. (and maybe see if we can integrate the other fixes from other forks also.) you can just drag it into vscode, to install it. let me know if you run into any issues! p.s. cool username, I'm from Holland also edit: - we work on macs so, I must admit I have not tested it on windows. |
|
I don't see a separate option to add issues regarding to this pull request here, so I will add my remarks here:
I hope my remarks can improve your solution. |
|
Hi Rene, Thanks for the feedback! Short reply for now, currently I'm chilling on Texel, will check it out when I get back and see how I can improve it. Sorry for the delay! |
|
Hi Rene, Took me some time, to get back to you.
Thanks!
Good catch, we don't use the double quotes for our variables in the keywords. So I will adjust the regex to compensate for that.
Hmm would it work for you if I limit the search for corresponding keywords only in the current module/steps folder?
This PR, is for goto definition function. If I have time, I'll try to make a new PR for that!
This one will be hard for me to debug, but maybe with the new improvements, this will work better on the windows server at work.
Thanks for the feedback, really appreciated! |
|
Thanks for your reaction. I have only a remark about point 3. The short answer is limiting the search won't help. Actually it will miss keywords. I will try to explain a bit more the style of my project. I created one big project. With a seperation into about 20 modules. See as 20 folders within the project with more or less the same folder and file structure. Next to this modules there is a general folder with underlaying folder structure and files. If there is something that can be used in multiple modules. I have it in the general folder. Searching in the current folder will miss the general keywords.
|
Uh oh!
There was an error while loading. Please reload this page.