This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-17
Channels
- # announcements (8)
- # atom-editor (8)
- # aws (1)
- # babashka (96)
- # beginners (128)
- # calva (7)
- # cider (12)
- # cljsrn (1)
- # clojure (75)
- # clojure-europe (28)
- # clojure-hamburg (2)
- # clojure-italy (7)
- # clojure-nl (7)
- # clojure-norway (3)
- # clojure-uk (13)
- # clojurescript (26)
- # conjure (2)
- # cursive (18)
- # data-science (7)
- # datalog (21)
- # datomic (9)
- # duct (15)
- # expound (29)
- # figwheel-main (14)
- # fulcro (59)
- # helix (4)
- # jobs (2)
- # kaocha (19)
- # leiningen (15)
- # luminus (4)
- # malli (57)
- # meander (2)
- # off-topic (2)
- # pathom (12)
- # pedestal (8)
- # re-frame (53)
- # reitit (9)
- # remote-jobs (1)
- # shadow-cljs (64)
- # spacemacs (1)
- # specter (2)
- # tools-deps (12)
- # tree-sitter (2)
- # vim (11)
- # xtdb (17)
@mauricio.szabo i am not sure, but it says this in the README: > This extension looks for a file called init.js or init.ts in your <code-config-path>/User folder, compiles it if it's a TypeScript file, and then loads it. > It expects your init script to export a function init(context: vscode.ExtensionContext), which it will then invoke. From here, you're free to interact with your Code instance through the extension API.
@mauricio.szabo i suspect the answer may be "no" after looking at this: https://github.com/microsoft/vscode/issues/1422 -- but it appears a number of parties have been interested for some time, so may be at some point?
my impression has been "if it isn't in package.json it can't be registered" -- does that seem right?
It seems that if it isn't in package.json
then you can't get its display name and some other properties and you can't add key bindings to it. I'm not sure if that's what you mean by "it can't be registered".
was just echoing mauricio -- i think he was referring to the use of: https://code.visualstudio.com/api/references/vscode-api#commands.registerCommand and https://code.visualstudio.com/api/references/vscode-api#commands.registerTextEditorCommand
Certainly seems like MS have been resisting this particular avenue of customization for over four years... 🙂