From d6531780d62c21efa376b22bef4f5afef409327a Mon Sep 17 00:00:00 2001 From: Junyi Du Date: Sun, 12 Feb 2023 14:24:57 +0800 Subject: [PATCH] Update VSCode + Calva with more details --- docs/develop-logseq.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/develop-logseq.md b/docs/develop-logseq.md index e5744aa82..7cbec3f2f 100644 --- a/docs/develop-logseq.md +++ b/docs/develop-logseq.md @@ -27,9 +27,17 @@ Then open the browser . ### REPL setup #### VSCode + Calva +With ```yarn watch``` running, it should prints ``shadow-cljs - nREPL server started on port 8701`` + +You may connect to the nREPL server with: ``cmd + shift + p`` -> ``Calva: Connect to a running nREPL server`` -> ``logseq`` -> ``shadow-cljs``->``:app`` ->``localhost:8701`` +(change ``:app`` to ``:electron`` if you want to connect to the main thread of the Electron app) + +Open a dev environment (Browser dev app on ``localhost:3000`` or Desktop dev app), then you can play REPL on the current editing file: + +``cmd + shift + p`` -> ``Calva: Load/Evaluate Current File and its Requires/Dependencies`` ### Production Build