beginners 2026-08-31

Hello, I'm trying Calva out on VS Code, but I cannot figure out how to auto-dismiss the inline results after evaluating the form. Does anyone know if this is possible?

Hi! Welcome to Calva! There is nothing that dismisses the inline results on timer, if that’s what you mean. You are welcome to file an issue about it. Sounds like something we could consider adding. It’s also fairly easy to do with #C03DPCLCV9N and a keybinding using runCommands:

{
    "key": "alt+enter",
    "command": "runCommands",
    "args": {
      "commands": [
        "calva.evaluateCurrentTopLevelForm",
        {
          "command": "joyride.runCode",
          "args": "(require '[promesa.core :as p]) (p/delay 1500)"
        },
        "calva.clearInlineResults"
      ]
    }
  },
Will be needing one binding per inline-result-producing command. There is also #CBE668G4R, fyi.

Sorry I did not make my point clear. What I meant was something with the behaviour of hover windows, where they disappear once you move the cursor. But, it doesn't seem like Calva have that feature anyway and I think that is fine too

I see. It defeats the purpose that you should be able to evaluate several things in a row and have all inline results still there. That said, this is also something we can wield Joyride to do. With Joyride installed, run the command Joyride: Run Clojure Code… and paste:

(require '["vscode" :as vscode])
(defonce !clear-on-move (atom nil))
(some-> @!clear-on-move .dispose)
(reset! !clear-on-move
        (vscode/window.onDidChangeTextEditorSelection
         (fn [_]
           (vscode/commands.executeCommand "calva.clearInlineResults"))))
If you find you prefer this behaviour you can install this code in your user-activate script.