Skip to content

Commit 3294140

Browse files
committed
Merge branch dev into published
2 parents a8f4395 + 7936c04 commit 3294140

File tree

13 files changed

+64
-14
lines changed

13 files changed

+64
-14
lines changed

CHANGELOG.md

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

55
## [Unreleased]
66

7+
## [2.0.319] - 2022-11-10
8+
9+
- Fix: [The indenter fails matching cljfmt rules on qualified symbols](https://github.com/BetterThanTomorrow/calva/issues/1956)
10+
- [Add info about cider-nrepl docs to calva.io/connect](https://github.com/BetterThanTomorrow/calva/issues/1955)
11+
- [Inform about Calva version on startup](https://github.com/BetterThanTomorrow/calva/issues/1954)
12+
- Fix: [Calva docs site theme color not used](https://github.com/BetterThanTomorrow/calva/issues/1960)
13+
714
## [2.0.318] - 2022-11-08
815

916
- Fix: [Calva doesn't show action buttons in error message boxes](https://github.com/BetterThanTomorrow/calva/issues/1949)

docs/site/connect.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ All this said, I still recommend you challenge the conclusion that you can't use
6666
!!! Note
6767
There is a Calva command for copying the Jack-in command line to the clipboard.
6868

69+
### Starting the REPL from application code?
70+
71+
If your project is setup so that the REPL server is started by the application code, you will need to get the cider-nrepl middleware in place. See the cider-nrepl docs about [embedding nREPL in your application](https://docs.cider.mx/cider-nrepl/usage.html#via-embedding-nrepl-in-your-application).
72+
6973
## Monorepos / multiple Clojure projects in one workspace
7074

7175
If the workspace is a monorepo, Polylith repo or just a repository with more than one Clojure project, Calva will start the connect sequence with prompting for which project to start/connect to.

docs/site/stylesheets/extra.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:root {
1+
[data-md-color-scheme="default"] {
22
--md-primary-fg-color: rgb(219, 149, 80);
33
--md-accent-fg-color: rgb(144, 180, 254);
44
}

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.318",
6+
"version": "2.0.319",
77
"publisher": "betterthantomorrow",
88
"author": {
99
"name": "Better Than Tomorrow",

src/cljs-lib/src/calva/fmt/formatter.cljs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
[calva.js-utils :refer [jsify cljify]]
66
[calva.fmt.util :as util]
77
[calva.parse :refer [parse-clj-edn]]
8-
[clojure.string]))
8+
[clojure.string]
9+
[clojure.core :as c]))
910

1011
(defn- merge-default-indents
1112
"Merges onto default-indents.

src/cursor-doc/indent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export function collectIndents(
9191

9292
const pattern =
9393
isList &&
94-
_.find(_.keys(rules), (pattern) => pattern === token || testCljRe(pattern, token));
94+
_.find(_.keys(rules), (p) => testCljRe(`#"^(.*/)?${p}$"`, token) || testCljRe(p, token));
9595
const indentRule = pattern ? rules[pattern] : [];
9696
indents.unshift({
9797
first: token,
@@ -140,7 +140,7 @@ export function collectIndents(
140140

141141
const testCljRe = (re, str) => {
142142
const matches = re.match(/^#"(.*)"$/);
143-
return matches && RegExp(matches[1]).test(str);
143+
return matches && RegExp(matches[1]).test(str.replace(/^.*\//, ''));
144144
};
145145

146146
/** Returns the expected newline indent for the given position, in characters. */

src/extension.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,6 @@ async function activate(context: vscode.ExtensionContext) {
423423
greetings.activationGreetings(chan);
424424

425425
if (vimExtension) {
426-
chan.appendLine(`VIM Extension detected. Please read: ${VIM_DOC_URL} now and then.\n`);
427426
if (!context.globalState.get(VIEWED_VIM_DOCS)) {
428427
void vscode.window
429428
.showInformationMessage(

src/greet.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ export function activationGreetings(chan: vscode.OutputChannel) {
3535
chan.appendLine(` clojure-lsp version configured: ${clojureLspVersion}`);
3636
}
3737
chan.appendLine('');
38-
chan.appendLine('If you are new to Calva, please consider starting with the command:');
39-
chan.appendLine(' **Calva: Fire up the Getting Started REPL**');
40-
chan.appendLine(' https://calva.io/getting-started/');
38+
chan.appendLine('If you are new to Calva, please see: https://calva.io/getting-started/');
39+
chan.appendLine(' And please consider the command: **Calva: Fire up the Getting Started REPL**');
4140
chan.appendLine('');
4241
chan.appendLine(
43-
'(See `showCalvaSaysOnStart` in Settings to control the auto-showing of this message panel.)'
42+
'Calva version used: v' +
43+
vscode.extensions.getExtension('betterthantomorrow.calva').packageJSON.version
4444
);
4545
}

src/lsp/main.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,6 @@ function quickPick(message: string, actions: { title: string }[]): Promise<{ tit
563563
function sayClientVersionInfo(serverVersion: string, serverInfo: any) {
564564
const cljKondoVersion = serverInfo['clj-kondo-version'];
565565
const calvaSaysChannel = state.outputChannel();
566-
calvaSaysChannel.appendLine('');
567566
calvaSaysChannel.appendLine(`clojure-lsp version used: ${serverVersion}`);
568567
calvaSaysChannel.appendLine(`clj-kondo version used: ${cljKondoVersion}`);
569568
}

0 commit comments

Comments
 (0)