nushell / nushell/vscode-nushell-lang

dotnet/c# build task uses nushell when set as default

Open
#189 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Nushell
Stars
153
Forks
31
PR merge metrics
No merged PRs in 30d

Description

Hello, I'm not sure which extension is at fault exactly here, however, so far I can only reproduce this with the vscode-nushell-lang extension and it's included Nushell profile, no other.

Environment setup:

// settings.json
{
  "terminal.integrated.defaultProfile.windows": "Nushell",
  "terminal.integrated.automationProfile.windows": {
    "path": "C:/WINDOWS/System32/cmd.exe"
  },
}

Ways to reproduce / Problem description

Attempting to F5 / Run/Debug any C# project, such as the .NET9 "Hello World" consoleApp template will attempt to build it before launching the debugger.

With the default shell set to the included Nushell profile, the build task invoked will launch the last used terminal shell in interactive mode, which breaks the build process.

Any other profile will not change the build shell in that situation, which makes me believe that this might be an issue on this extension.

Creating a custom Nushell profile also does fix the issue, which I currently use as a workaround, such as below.

// settings.json
{
  "terminal.integrated.profiles.windows": {
    "Nushell-custom": {
      "path": "nu",
      "icon": "terminal"
    }
  },
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the F5 build with the shown settings.json, the included Nushell profile, and the custom profile workaround. Compare which profile the build task launches and inspect the vscode-nushell-lang profile behavior; done means C# build tasks no longer start the last-used Nushell shell interactively when the included profile is selected.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.