-
Notifications
You must be signed in to change notification settings - Fork 28
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:
- VSCode stable 1.96.4 (cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba)
- vscode-nushell-lang 1.10.0
- ms-dotnettools.csharp 2.61.26
- ms-dotnettools.csdevkit 1.15.34
// 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"
}
},
}