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:
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.
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: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:
vscode.postMessage
from svelte.window.addEventListener('message',()=>{})
from svelte.sidebar.js
file and migrate all functionality to respective svelte files.Why should this be worked on?
Improvements to code quality
Repository
keploy