-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Found one case when "Generate Code" command executes request, but does not display generated code #170
Comments
@woolfas I had to take my time for the feature. I didn't want to reject it because it was complex to implement. I would have a simple solution by now. |
My proposed solution is released with v6.0.0. Please test my change. Thanks. |
Hi. I tested your changes and I would say - partially works. Here's the issues I found:
the code is generated for both lines, but only once. If I try to execute
command |
The current implementation is that I execute all requests and search for the named variable at the end. An abort is difficult, since I must either reset the complete cache, or provide a general registration of a codeGenerationPlugin, which is then armed if necessary. |
Steps to reproduce:
first.http:
second.http:
third.http:
third.http
and put the cursor to@forceRef send_apple
line.httpYac: Generate Code
commandExpected results: System finds
send_apple
region infirst.http
, reads the request data and generates code for that request.Actual results: System executes
send_apple
andsend_cake
regions without generating any code.Basically my expectation is that if cursor is placed on any @forceRef or @ref line and "Generate Code" command is being executed, then system should generate it for the region which is referenced. If cursor is placed on the request line, then system should generate the code for the selected request.
The text was updated successfully, but these errors were encountered: