I promise not to spam this but I created an extens...
# suitescript
e
I promise not to spam this but I created an extension for VS Code user to help write SuiteScript 2.0 much faster. I'd love for any VS Code developers to try it out. Its called SuiteSnippets and is available in the VS Code Extension store and also here: https://marketplace.visualstudio.com/items?itemName=ericbirdsall.SuiteSnippets
👍 3
✔️ 2
d
i checked x.record.load which gives me snippet, any shortcuts which gives me the description and usage units of API?
e
yes. If you just type "record.load", the description on the side will show you the Description, Returns, Supported Script Types, Governance, etc.
You may need to scroll through the description, as there is a good amount of info there and VS Codes snippet description box isnt resizable... without the hack show in the README file of the snippet
d
That works 😀
s
have you considered TypeScript?
e
@stalbert as far as using it to write code, or making an extension to support it?
s
well, both I suppose. A lot of the 'intellisense' sort of completion comes naturally (and more reliably) just by using TypeScript.
and as far a snippets go, it would be nice for some snippets to create typescript code where helpful. I haven't thought of which snippets exactly would benefit from that but I imagine there's some where a TS snippet would be stronger than the equivalent JS-only snippet.
e
I haven't used TypeScript much, but would be interested in hearing/see more of its advantages. It's my impression (and please correct me if I'm wrong) that I would still need to type out each option key and value when using TypeScript? i.e. typing record.transform would show that I needed to add "fromType", "fromId", and "toType", but I would have to type out those 3 keys along with their values?
s
you'd typically not type all all the characters due to intellisense. having a snippet that lets you fill out a template for
record.transform()
(for example) would be helpful though it saves less keystrokes for a TS user than it does a plain JS user due to the improve intellisense that comes from the TS language service itself.