在 VS CODE 中运行 (lein) REPL

Tia*_*Oca 4 editor clojure leiningen visual-studio-code

有没有办法在 VS Code 中使用 lein 的 REPL?我的意思是,使用tasks.js 或其他东西。

我想要一个集成环境来运行、测试和构建我的 clojures 应用程序。我想也许我可以使用 VS Code 实现类似的目标,因为它支持第三方编译器。我可以使用lein run,但它不起作用lein repl

我已阅读任务的文档,但没有任何与 REPL 相关的内容。

这是我使用的tasks.js代码:

{
    // See http://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "0.1.0",
    "command": "lein",
    "tasks": 
    [
        {
            "taskName": "run",
            "showOutput": "always",
            "args": ["run"],
            "isBuildCommand": true,
            "isWatching": false
        },

        {
            "taskName": "repl",
            "showOutput": "always",
            "args": ["repl"],
            "isWatching": true
        }
    ],

    "isShellCommand": true
}
Run Code Online (Sandbox Code Playgroud)

PEZ*_*PEZ 5

作为《Calva》的作者,我可以推荐它。

说真的,目前它对交互式编程的支持是最好的。用户指南的编辑器部分对其功能进行了简短总结shadow-cljshttps://shadow-cljs.github.io/docs/UsersGuide.html#_calva_vs_code