AnWeber / vscode-httpyac

Quickly and easily send REST, Soap, GraphQL, GRPC, MQTT and WebSocket requests directly within Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=anweber.vscode-httpyac
MIT License
222 stars 20 forks source link

setup response path/ clear up response files #241

Closed Med-H closed 6 months ago

Med-H commented 7 months ago

httpyacc is storing responses under .../Code/User/globalStorage/anweber.vscode-httpyac/httpyac/

can you please add an option to setup the path to the reponse folder, and maybe the option to clean it up?

keep up the good work and thank you in advance.

AnWeber commented 7 months ago

Command httpyac.pruneStorage cleans the storage. This simply deletes the entire folder. This is also the reason why I find it so difficult to make it configurable. I don't want to accidentally delete the wrong files. That's why I would have created an extra command for the output of files in the current folder. see output-redirection

jayYoung888 commented 6 months ago

If it is difficult to add an option to clean the response file up, can we add a new configuration where the response is not placed in a file, but just displayed in a temporary window in VsCode? BTW, thank you for your nice work!

AnWeber commented 6 months ago

I have now added several configuration options.

I can't seem to clean up the files when closing vscode. I can't get vscode to close. And during the dispose, filesystem API access is no longer possible (open issue at VSCode). For this reason there is now only the manual option to delete the files.

Med-H commented 6 months ago

I have now added several configuration options.

  • global (behavior as before)
  • workspace (storage within the workspace)
  • file (storage next to the current file)
  • none (no caching in filesystem)

I can't seem to clean up the files when closing vscode. I can't get vscode to close. And during the dispose, filesystem API access is no longer possible (open issue at VSCode). For this reason there is now only the manual option to delete the files.

great job m8