2 ms·
I found it really helpful for porting an extension I'd written for Atom (now unsupported/defunct) to VS Code. Now, if I were writing VS Code extensions on a da
by Turing_Machine 3y ago
I found it really helpful for porting an extension I'd written for Atom (now unsupported/defunct) to VS Code.
Now, if I were writing VS Code extensions on a daily basis, I'd want to spend the time to learn all the details, but (ideally) I'll never have to write one again. This is the only one I ever had to write for Atom, so it's a decent bet.
And yeah, most of the code was boilerplate-- but still ChatGPT saved me from having to learn how to write that boilerplate. At least a day of time, I'd reckon. Possibly several days.
The task was to recognize the Scheme expression (atom or pair) preceding the current caret position, sign it using a password hash, send it to a remote Scheme REPL for evaluation, then insert and select the result of the evaluation in the editor.
ChatGPT essentially wrote everything for me, except the part that parsed out the Scheme expression. It wrote a really horrible regex for that. Fortunately I already had a proper parser implemented in the previous Atom extension, which dropped right in.