Skip to content

Commit

Permalink
Merge branch dev into published
Browse files Browse the repository at this point in the history
  • Loading branch information
PEZ committed Oct 21, 2024
2 parents 2f6a722 + 513a3df commit 453b4d6
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ Changes to Calva.

## [Unreleased]

## [2.0.480] - 2024-10-21

- Fix: [Custom command snippets use the wrong ns when repl sessions types do not match](https://github.com/BetterThanTomorrow/calva/issues/2653)
- 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)

## [2.0.479] - 2024-10-01

- [Autostart REPL in created projects, also when created in the current folder](https://github.com/BetterThanTomorrow/calva/issues/2644)
Expand Down
6 changes: 5 additions & 1 deletion bundled/drams-menu/drams-dev.edn
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@
{:title "Create a mini Clojure project",
:src "https://raw.githubusercontent.com/BetterThanTomorrow/dram/dev/drams/v2/mini",
:extraDetail "Starts a REPL, requires Java",
:description "A quick way to Fire up a Clojure REPL"}]
:description "A quick way to Fire up a Clojure REPL"}
{:title "Create a mini shadow-cljs Fullstack project",
:src "https://raw.githubusercontent.com/BetterThanTomorrow/dram/dev/drams/v2/mini_shadow_fullstack",
:extraDetail "Starts a REPL, requires Java",
:description "From Thomas Helller's Fullstack Workflow with shadow-cljs"}]
6 changes: 5 additions & 1 deletion bundled/drams-menu/drams-published.edn
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@
{:title "Create a mini Clojure project",
:src "https://raw.githubusercontent.com/BetterThanTomorrow/dram/published/drams/v2/mini",
:extraDetail "Starts a REPL, requires Java",
:description "A quick way to Fire up a Clojure REPL"}]
:description "A quick way to Fire up a Clojure REPL"}
{:title "Create a mini shadow-cljs Fullstack project",
:src "https://raw.githubusercontent.com/BetterThanTomorrow/dram/published/drams/v2/mini_shadow_fullstack",
:extraDetail "Starts a REPL, requires Java",
:description "From Thomas Helller's Fullstack Workflow with shadow-cljs"}]
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Calva: Clojure & ClojureScript Interactive Programming",
"description": "Integrated REPL, formatter, Paredit, and more. Powered by cider-nrepl and clojure-lsp.",
"icon": "assets/calva.png",
"version": "2.0.479",
"version": "2.0.480",
"publisher": "betterthantomorrow",
"author": {
"name": "Better Than Tomorrow",
Expand Down
3 changes: 2 additions & 1 deletion src/custom-snippets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ async function evaluateCodeOrKeyOrSnippet(codeOrKeyOrSnippet?: string | SnippetD
? codeOrKeyOrSnippet
: await getSnippetDefinition(codeOrKeyOrSnippet as string, editorNS, editorRepl);

snippetDefinition.ns = snippetDefinition.ns ?? editorNS;
snippetDefinition.repl = snippetDefinition.repl ?? editorRepl;
snippetDefinition.ns =
snippetDefinition.ns ?? (editorRepl === snippetDefinition.repl ? editorNS : undefined);
snippetDefinition.evaluationSendCodeToOutputWindow =
snippetDefinition.evaluationSendCodeToOutputWindow ?? true;

Expand Down
1 change: 0 additions & 1 deletion src/lsp/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ export const createClient = (params: CreateClientParams): defs.LspClient => {
'auto-add-ns-to-new-files?': true,
'document-formatting?': false,
'document-range-formatting?': false,
'keep-require-at-start?': true,
},
middleware: {
didOpen: (document, next) => {
Expand Down
2 changes: 1 addition & 1 deletion src/nrepl/jack-in.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import * as inspector from '../providers/inspector';

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

0 comments on commit 453b4d6

Please sign in to comment.