Closed mmuenker closed 3 months ago
Thanks for reporting this issue. The problem occurs because the parser reads the file from disk, and changes made in the editor are not saved immediately. I will fix this in the next version by ensuring changes are saved before importing the OpenAPI file. For now, you can manually save the file (Ctrl + S) to reflect the changes after a refresh.
Thanks for the quick response.
But I don't think that's the problem. The Open API file in question is generated, so the changes are saved to disk.
Is it possible that the plugin is using the IDE's file change detection? Maybe the IDE is not detecting the changes?
Thanks for the feedback. It's possible to detect changes and automatically update the imported API whenever the OpenAPI file changes. However, this could impact performance when editing the OpenAPI file. For now, I'll keep the current behavior where you need to click the Refresh button in the tool window to update the imported API. As mentioned earlier, if you make changes to the OpenAPI file in the editor, you need to save those changes to disk (using 'Save All', switching editor tabs, etc.). Only then will the changes be applied when you click the Refresh button. I will fix this in the next version so that you will only need to click the Refresh button without having to save the file first. If you are making changes using a generation tool, the changes should be written to disk and should be applied after clicking the Refresh button. Did you try clicking the Refresh button in the tool window?
Understandable. Thank you.
Did you try clicking the Refresh button in the tool window?
No, I hadn't tried it before, but I gave it a try and it worked as I had expected. I'm not sure how I had overlooked the button previously ...
Describe the bug
In order for changes made in selected OpenAPI files to take effect, it is necessary to restart the IDE.
Steps to reproduce
Expected behavior
The modifications made to the OpenAPI file should be reflected in the newly created drafts.
Environment information: