joyride

pez 2022-11-14T07:32:59.964949Z

When Joyride starts it does this

(p/do! (life-cycle/maybe-run-init-script+ scripts-handler/run-user-script+
                                                       (:user (life-cycle/init-scripts)))
                    (when vscode/workspace.rootPath
                      (life-cycle/maybe-run-init-script+ scripts-handler/run-workspace-script+
                                                         (:workspace (life-cycle/init-scripts))))
                    (utils/sayln "🟢 Joyride VS Code with Clojure. 🚗💨"))))))
I think I have intended for the output there to be printed after any promises have resolved. But it won't, right? Because the when will return immediately... Anyone know of a good way to write this?

pez 2022-11-14T07:37:47.182089Z

Hmmm, no, that seems not to be the issue...

👀 1
pez 2022-11-14T08:54:37.283729Z

So, of course using when like that does not interfere with p/do!, that was a strange theory. 😃 . But we do print that ending message there, before any promises in the user and workspace scripts are resolved. So we are doing something wrong.

Max 2022-11-14T15:08:09.571739Z

Anyone know if there’s a way for Joyride to interact with https://github.com/microsoft/vscode/blob/bcf14feff662c178d1b5fcc4b707f1ee5044583f/src/vs/workbench/services/history/browser/historyService.ts apart from the existing “go previous/forward/backward [edit|navigation] locations” commands?

pez 2022-11-14T18:49:39.191649Z

Unless there is an API, there’s probably no way.

Max 2022-11-14T20:33:49.183529Z

😞 I was hoping to make a “go to previous location in file” command

pez 2022-11-14T23:31:19.379309Z

Sometimes Undo Cursor works for that. But, not really like the navigation.