You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,13 @@ Changes to Calva.
4
4
5
5
## [Unreleased]
6
6
7
+
## [2.0.481] - 2024-10-29
8
+
9
+
-[Add extension when contexts for Calva states such as project root, session type, ns](https://github.com/BetterThanTomorrow/calva/issues/2652)
10
+
- Fix: [Calva internals: The `backwardSexp` function can't handle skipping ignored forms, even though it says it can](https://github.com/BetterThanTomorrow/calva/issues/2657)
11
+
- Fix: [Keep support for evaluating top level form in ignored forms when at top level](https://github.com/BetterThanTomorrow/calva/issues/2655)
12
+
-[Enable separate styling for top level ignored forms](https://github.com/BetterThanTomorrow/calva/issues/2660)
13
+
7
14
## [2.0.480] - 2024-10-21
8
15
9
16
- Fix: [Custom command snippets use the wrong ns when repl sessions types do not match](https://github.com/BetterThanTomorrow/calva/issues/2653)
Copy file name to clipboardExpand all lines: docs/site/evaluation.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ Some of the commands also let you choose what should happen with the results:
35
35
* The `line` style is the default.
36
36
* The `ignore` style will put an ignore marker (`#_`) before the result.
37
37
* The `rcf` style will wrap the result in a rich comment form ( `(comment ...)`).
38
-
38
+
39
39
Here are some example keybindings for using the different comment styles with the **Evaluate Top Level Form (defun) to Comment** command:
40
40
41
41
```jsonc
@@ -108,6 +108,8 @@ The **current top-level form** means top-level in a structural sense. It is _not
108
108
109
109
An ”exception” is introduced by the `comment` form. It will create a new top level context, so that any forms immediately inside a `(comment ...)` form will be considered top-level by Calva. This is to support a workflow with what is often referred to the [Rich Comments](rich-comments.md).
110
110
111
+
A special case is ignored forms (using the `#_` marker) at the top level. They will always be selected as top level forms separately from their ignore marker, enabling evaluating them as top level forms. Similar to Rich Comments.
112
+
111
113
At the top level the selection of which form is the current top level form follows the same rules as those for [the current form](#current-form).
|`matchedBracketStyle`| Style of bracket pair highlight |`{"backgroundColor": "#E0E0E0"}`|
46
-
|`ignoredFormStyle`| Style of `#_...` form |`{"textDecoration": "none; opacity: 0.5"}`|
46
+
|`ignoredFormStyle`| Style of `#_...` forms |`{"textDecoration": "none; opacity: 0.5"}`|
47
+
|`ignoredTopLevelFormStyle`| Style of `#_...` forms at the top level. (If not set, uses `ignoredFormStyle`) |`{ "textDecoration": "none; text-shadow: 2px 2px 5px rgba(255, 215, 0, 0.75)" }`|
47
48
|`commentFormStyle`| Style of `(comment ...)` form |`{"fontStyle": "italic"}`|
48
49
49
50
!!! Note "Calva disables the VS Code built-in indent guides"
"description": "Integrated REPL, formatter, Paredit, and more. Powered by cider-nrepl and clojure-lsp.",
5
5
"icon": "assets/calva.png",
6
-
"version": "2.0.480",
6
+
"version": "2.0.481",
7
7
"publisher": "betterthantomorrow",
8
8
"author": {
9
9
"name": "Better Than Tomorrow",
@@ -1142,6 +1142,12 @@
1142
1142
"default": null,
1143
1143
"description": "Style of `#_` ignored forms",
1144
1144
"scope": "resource"
1145
+
},
1146
+
"calva.highlight.ignoredTopLevelFormStyle": {
1147
+
"type": "object",
1148
+
"default": null,
1149
+
"markdownDescription": "Style of top level `#_` ignored forms. If not specified, it will be the same as what's set for `calva.highlight.ignoredFormStyle`",
0 commit comments