Skip to content

Commit 53e1dae

Browse files
author
committed
[skip ci]
1 parent 2b4070c commit 53e1dae

File tree

6 files changed

+75
-68
lines changed

6 files changed

+75
-68
lines changed
-45 KB
Loading
331 KB
Loading

search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

shadow-cljs/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2110,6 +2110,13 @@ <h1 id="shadow-cljs-browser-quickstart">shadow-cljs - browser quickstart<a class
21102110
<li>Top-level forms with <kbd>alt/option</kbd>+<kbd>enter</kbd>.</li>
21112111
</ul>
21122112
<p>(See <a href="../evaluation/">Code Evaluation</a>)</p>
2113+
<h1 id="runtime-selection">Runtime Selection<a class="headerlink" href="#runtime-selection" title="Permanent link">#</a></h1>
2114+
<p>When working with shadow-cljs projects you often have multiple runtimes running in different browser tabs, browsers, and phones, simultaneously. Calva will automatically connect to one of these (whichever runtime shadow-cljs connects when selecting a build). And you can then also switch between different JavaScript runtimes without reconnecting the REPL.</p>
2115+
<h2 id="available-runtimes">Available Runtimes<a class="headerlink" href="#available-runtimes" title="Permanent link">#</a></h2>
2116+
<p>Use the command <strong>Calva: Select Shadow CLJS Runtime</strong> to see all currently connected runtimes, presented in a VS Code quick-pick menu. The status bar will also display the active runtime when connected to a shadow-cljs project, and clicking this indicator will open the runtimes menu.</p>
2117+
<h2 id="switching-runtimes">Switching Runtimes<a class="headerlink" href="#switching-runtimes" title="Permanent link">#</a></h2>
2118+
<p>The <strong>Calva: Select Shadow CLJS Runtime</strong> menu will also let you select which runtime the <code>cljs</code> repl is connected to.</p>
2119+
<p><img alt="shadow-cljs-runtimes-menu" src="/images/shadow-cljs/runtimes-menu.png" /></p>
21132120
<h1 id="shadow-cljs-in-full-stack-projects">shadow-cljs in full stack projects<a class="headerlink" href="#shadow-cljs-in-full-stack-projects" title="Permanent link">#</a></h1>
21142121
<p><strong>shadow-cljs</strong> is a bit special in regards to Calva REPL connection. Mainly because you can start <strong>shadow-cljs</strong> and it's nREPL server in two ways:</p>
21152122
<ol>

0 commit comments

Comments
 (0)