keploy / keploy

Unit and Integration Test generation for Developers. Generate tests and stubs for your application that actually work!
https://keploy.io
Apache License 2.0
5.03k stars 490 forks source link

[feature]: Add support for calling the vscode API directly via svelte #2144

Open SkySingh04 opened 3 months ago

SkySingh04 commented 3 months ago

Is there an existing feature request for this?

Summary

Repository : https://github.com/keploy/vscode-extension

The current version of the vscode extension uses sidebar.js inorder to call the Vsode API and perform interactions with the Typescript backend using vscode.Postmessage. Here is an example of this:

if (openRecordPageButton) {
  openRecordPageButton.addEventListener('click', async () => {
    console.log("openRecordPageButton clicked");
    vscode.postMessage({
      type: "navigate",
      value: "Keploy"
    });
  });
}

Ideally, we should be able to call the vscode API directly from our svelte files inorder to remove redundacny and ultimately cut the need for the presence of this extra script.

References:

Ben awad has implemented this in his tutorial and the same can be implemented via following it : https://www.youtube.com/watch?v=a5DX5pQ9p5M&t=9571s

Deliverables:

Why should this be worked on?

Improvements to code quality

Repository

keploy

ayush3160 commented 3 months ago

I would like to work on this

SkySingh04 commented 3 months ago

Go for it! Do ping if you face any difficulty!