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: README.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,7 @@ Demo: switch between `clj` and `cljs` repl sessions for `cljc` files:
97
97
- Evaluate code from the editor to the REPL window: `ctrl+alt+c ctrl+alt+e` (`ctrl+alt+c ctrl+alt+v` on Windows)
98
98
- When editing `cljc` files, easily choose if REPL commands should go to the `clj` or `cljs` REPL by clicking the `cljc/clj[s]` indicator in the status bar.
99
99
- Selection of current form: `ctrl+alt+c s`. Auto-detected the same way as for evaluation. Will select the form preceding or following the cursor first, otherwise the form the cursor is inside. (Only when the cursor is directly adjacent to any bracket so far.)
100
+
- Configure and run custom commands, i.e. code snippets, at will: `ctrl+alt+c .`
Copy file name to clipboardExpand all lines: docs/integration.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,8 @@ Smaller changes:
35
35
36
36
When a VSIX is good enough for release, and someone authorized to commit to the `master` branch has _at least half an hour of spare time_, the following will bring it to the Marketplace:
37
37
38
-
1. With `dev` checked out: `git checkout -B master`. (This ”moves” `master` to where `dev`'s `HEAD` is pointing.)
38
+
1. With `dev` checked out: `git checkout master`.
39
+
1.`git merge dev`
39
40
1. Tag with `v<VERSION>`
40
41
1. Push `master` (Using `--follow-tags`).
41
42
* This will build the release VSIX, push a relase to GitHub, and publish it on the extension Marketplace.
"description": "Name this command so that it is easy to pick from the menu."
230
+
},
231
+
"snippet": {
232
+
"type": [
233
+
"string",
234
+
"array"
235
+
],
236
+
"description": "Command to send to the REPL"
237
+
},
238
+
"ns": {
239
+
"type": "string",
240
+
"description": "(optional) Namespace to evaluate the command in. If ommitted the command will be executed in whatever namespace the REPL window has at the moment, which probably is mostly useful for running code using definitions from the `user` namespace."
241
+
},
242
+
"repl": {
243
+
"type": "string",
244
+
"description": "Choose which REPL should the code should be evaluated in.",
245
+
"enum": [
246
+
"clj",
247
+
"cljs"
248
+
]
249
+
}
250
+
},
251
+
"required": [
252
+
"name",
253
+
"snippet",
254
+
"repl"
255
+
]
256
+
}
257
+
},
218
258
"calva.myLeinProfiles": {
219
259
"type": "array",
220
260
"description": "At Jack in, any profiles listed here will be added to the profiles found in the `project.clj` file.",
vscode.window.showWarningMessage("Legacy Clojure Warrior settings detected. These settings have changed prefix/namespace to from `clojureWarrior´ to `calva.highlight`. You should update `settings.json`.", ...["Roger that!"]);
230
+
vscode.window.showWarningMessage("Legacy Clojure Warrior settings detected. These settings have changed prefix/namespace from `clojureWarrior´ to `calva.highlight`. You should update `settings.json`.", ...["Roger that!"]);
vscode.window.showErrorMessage("Errors found in the `calva.customREPLCommandSnippets` setting. Values missing for: "+JSON.stringify(configErrors),"OK");
0 commit comments