Fork me on GitHub
#joyride
<
2022-11-14
>
pez07:11:59

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?

pez07:11:47

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

šŸ‘€ 1
pez08:11:37

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.

Max15:11:09

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?

pez18:11:39

Unless there is an API, thereā€™s probably no way.

Max20:11:49

šŸ˜ž I was hoping to make a ā€œgo to previous location in fileā€ command

pez23:11:19

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