Hello, I am trying to setup a vs code task to run a Julia extension command in the active VS code REPL.
What I hope to achieve is to bind a hotkey to a task that will run the runtest.jl
file in the currently active REPL. I want to use this instead of the existing “Julia: Run Tests” (ctrl+shift+t) task because the existing task starts in a new REPL and takes ages to run on my machine.
What I have now is following:
{
"version": "2.0.0",
"tasks": [
{
"command": "language-julia.executeFile",
"args": [
"${workspaceFolder}/test/runtests.jl"
],
"label": "julia: Run runtest.jl in REPL"
}
]
}
but I get Unable to resolve filesystem provider with relative file path ''
when I try to run it.
I asked about this previously on slack (question and answer are now gone from there), and someone made a pull request for executeFile
to accept strings as well as uris. I am unsure whether that is part of the published extension and whether that is what is causing the error, as I have no clue how to debug this.