Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How do you use Slapdash to control VSCode? I thought that maybe I could create a command that executes a shell script, but it seems a command can only open a url in the browser, right? I can't find any docs for custom commands on your website.


VSCode registers[0] a url handler for vscode:// so you can open a directory or other things in VSCode with just a url

[0] https://code.visualstudio.com/docs/editor/command-line#_open...


Exactly right.

I have my command set up to open this URL:

vscode://file/<ABSOLUTE_PATH_TO_YOUR_DIR>

The "file" above is important, first time I set it up I missed it and it didn't work correctly.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: