joyride 2022-11-14

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?

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

👀 1

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.

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?

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

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

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