arnoudkooi / sn-scriptsync

Use sn-scriptsync in combination with SN Utils to be able to code in VS Code, including all benefits of a full fledged code editor
https://marketplace.visualstudio.com/items?itemName=arnoudkooicom.sn-scriptsync
Other
43 stars 28 forks source link

Display Background Script response in VSCode WebView Panel #94

Closed abhishekg999 closed 6 months ago

abhishekg999 commented 6 months ago

Hello, this PR implements the changes discussed in https://github.com/arnoudkooi/ServiceNow-Utils/discussions/480.

Specifically, it maintains a webViewPanel with scripts disabled that is displayed whenever a user runs bgScriptExecute, or when a responseFromBackgroundScript action is recieved. When the bgScript is executed, it will show a timer with the same interval shown on sys.scripts.do with the same cancel link.

When the responseFromBackgroundScript is recieved, it will overwrite this content from the data recieved from the extension.