This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-14
Channels
- # adventofcode (38)
- # announcements (42)
- # aws (3)
- # babashka (8)
- # beginners (165)
- # calva (36)
- # chlorine-clover (14)
- # cider (6)
- # clj-kondo (5)
- # cljsrn (33)
- # clojure (27)
- # clojure-australia (1)
- # clojure-czech (1)
- # clojure-doc (1)
- # clojure-europe (26)
- # clojure-nl (6)
- # clojure-spec (6)
- # clojure-uk (3)
- # clojurescript (10)
- # code-reviews (20)
- # conjure (1)
- # core-logic (5)
- # cursive (3)
- # data-science (5)
- # datomic (35)
- # emacs (1)
- # figwheel-main (3)
- # fulcro (10)
- # honeysql (1)
- # introduce-yourself (4)
- # jobs (3)
- # jobs-discuss (4)
- # minecraft (2)
- # missionary (28)
- # nextjournal (3)
- # off-topic (45)
- # pathom (7)
- # polylith (1)
- # portal (22)
- # practicalli (2)
- # re-frame (4)
- # reagent (19)
- # releases (3)
- # remote-jobs (3)
- # reveal (1)
- # rum (4)
- # shadow-cljs (37)
- # spacemacs (14)
- # sql (1)
- # tools-build (7)
- # tools-deps (16)
- # vim (13)
- # xtdb (15)
@mauricio.szabo Is it possible, in config.cljs
to run a VS Code command somehow? I'd assume you don't have that bridged into sci
right now, but is there some way your could hook such a thing into the cljs-available API?
(specifically, I'm trying to figure out how to run the command simpleBrowser.open
with a string argument -- a URL)
I don't think so. Unless you can already run commands with the VSCode API, but I'm unsure if this API exists
vscode.commands.executeCommand('editor.action.addCommentLine');
seems to be a thing you can do...
Ah, not from the vscode
"object" that seems to be available in the console (I'm not enough of a JS/TS expert to really understand how to get at such things).
On the console, at my version, vscode.commands
return undefined
. Let me upgrade real quick now
Yeah, I need to hook up this API. But it should be simple - maybe I can hack something to make it available at VSCode and Atom. I'll look at this tomorrow 🙂
(Provided that it works as we expect - which, considering VSCode, is asking too much, but we can hope 😄)
I assume there is some way in the JS console inside VS Code to actually get at that vscode
module or the commands
"object"?
But, yeah, if you could do something that works in both Atom and VS Code, that would be awesome 🙂
Yeah, but I don't think the vscode
module inside the console is the same as what the API offers. I tried once to read the VSCode source to get what they are doing, but it's a heavy code to read