Skip to content

Use a task to check if func cli is installed instead of child process #2019

@aaronpowell

Description

@aaronpowell

I run WSL2 for my dev and I've been unable to get the launch task to work when running under VS Code Remote WSL, it always tells me that I don't have the core tools installed (hitting this message).

It would appear that this function is returning false, and thus it bubbles the error up.

I have installed the tools, so if I run which from the VS Code terminal I get the following output:

➜ which func
/tmp/fnm-shell-3266999/bin/func

I'm using a Node version manager, fnm specifically, so that may cause an issue, but it's in the path for the built in terminal which I assumed what how vscode executes its checks, or am I mistaken?

If it's not running in context of the shell that boots, is there a way to configure it to run a Node version manager?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions