Skip to content

Commit 453b4d6

Browse files
committed
Merge branch dev into published
2 parents 2f6a722 + 513a3df commit 453b4d6

File tree

8 files changed

+21
-8
lines changed

8 files changed

+21
-8
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ Changes to Calva.
44

55
## [Unreleased]
66

7+
## [2.0.480] - 2024-10-21
8+
9+
- Fix: [Custom command snippets use the wrong ns when repl sessions types do not match](https://github.com/BetterThanTomorrow/calva/issues/2653)
10+
- Fix: [ns inner blocks are kept on the same line by default when using the clean ns command](https://github.com/BetterThanTomorrow/calva/issues/2648)
11+
712
## [2.0.479] - 2024-10-01
813

914
- [Autostart REPL in created projects, also when created in the current folder](https://github.com/BetterThanTomorrow/calva/issues/2644)

bundled/drams-menu/drams-dev.edn

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@
1111
{:title "Create a mini Clojure project",
1212
:src "https://raw.githubusercontent.com/BetterThanTomorrow/dram/dev/drams/v2/mini",
1313
:extraDetail "Starts a REPL, requires Java",
14-
:description "A quick way to Fire up a Clojure REPL"}]
14+
:description "A quick way to Fire up a Clojure REPL"}
15+
{:title "Create a mini shadow-cljs Fullstack project",
16+
:src "https://raw.githubusercontent.com/BetterThanTomorrow/dram/dev/drams/v2/mini_shadow_fullstack",
17+
:extraDetail "Starts a REPL, requires Java",
18+
:description "From Thomas Helller's Fullstack Workflow with shadow-cljs"}]

bundled/drams-menu/drams-published.edn

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@
1111
{:title "Create a mini Clojure project",
1212
:src "https://raw.githubusercontent.com/BetterThanTomorrow/dram/published/drams/v2/mini",
1313
:extraDetail "Starts a REPL, requires Java",
14-
:description "A quick way to Fire up a Clojure REPL"}]
14+
:description "A quick way to Fire up a Clojure REPL"}
15+
{:title "Create a mini shadow-cljs Fullstack project",
16+
:src "https://raw.githubusercontent.com/BetterThanTomorrow/dram/published/drams/v2/mini_shadow_fullstack",
17+
:extraDetail "Starts a REPL, requires Java",
18+
:description "From Thomas Helller's Fullstack Workflow with shadow-cljs"}]

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "Calva: Clojure & ClojureScript Interactive Programming",
44
"description": "Integrated REPL, formatter, Paredit, and more. Powered by cider-nrepl and clojure-lsp.",
55
"icon": "assets/calva.png",
6-
"version": "2.0.479",
6+
"version": "2.0.480",
77
"publisher": "betterthantomorrow",
88
"author": {
99
"name": "Better Than Tomorrow",

src/custom-snippets.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ async function evaluateCodeOrKeyOrSnippet(codeOrKeyOrSnippet?: string | SnippetD
5151
? codeOrKeyOrSnippet
5252
: await getSnippetDefinition(codeOrKeyOrSnippet as string, editorNS, editorRepl);
5353

54-
snippetDefinition.ns = snippetDefinition.ns ?? editorNS;
5554
snippetDefinition.repl = snippetDefinition.repl ?? editorRepl;
55+
snippetDefinition.ns =
56+
snippetDefinition.ns ?? (editorRepl === snippetDefinition.repl ? editorNS : undefined);
5657
snippetDefinition.evaluationSendCodeToOutputWindow =
5758
snippetDefinition.evaluationSendCodeToOutputWindow ?? true;
5859

src/lsp/client/client.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ export const createClient = (params: CreateClientParams): defs.LspClient => {
150150
'auto-add-ns-to-new-files?': true,
151151
'document-formatting?': false,
152152
'document-range-formatting?': false,
153-
'keep-require-at-start?': true,
154153
},
155154
middleware: {
156155
didOpen: (document, next) => {

src/nrepl/jack-in.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import * as inspector from '../providers/inspector';
2828

2929
function resolveEnvVariables(entry: any): any {
3030
if (typeof entry === 'string') {
31-
const s = entry.replace(/\$\{env:(\w+)\}/, (_, v) => (process.env[v] ? process.env[v] : ''));
31+
const s = entry.replace(/\$\{env:(\w+)\}/g, (_, v) => (process.env[v] ? process.env[v] : ''));
3232
return s;
3333
} else {
3434
return entry;

0 commit comments

Comments
 (0)