-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use vscode settings for shell execution #1134
Conversation
Nx Cloud ReportCI ran the following commands for commit f1f0289. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch
Sent with 💌 from NxCloud. |
} catch { | ||
bashPath = '/bin/bash'; // Default to where bash is usually installed. | ||
} | ||
} | ||
return new ShellExecution(config.displayCommand, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much Much Simpler than before! 👍
@@ -1,5 +1,5 @@ | |||
import { CliTaskDefinition } from './cli-task-definition'; | |||
import { Task, TaskGroup, TaskScope } from 'vscode'; | |||
import { ShellExecution, Task, TaskGroup, TaskScope } from 'vscode'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is ShellExecution used somewhere here? I don't see a reference within this file.
Maybe it has side effects?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What it does
This simplies creating the
ShellExecution
class to use defaults provided by vscode.More information can be found here:
https://code.visualstudio.com/docs/editor/integrated-terminal#_configuring-the-taskdebug-profile
In summary, Nx Console will now use the default terminal profile, OR the profile provided by the
terminal.integrated.automationShell.<platform>
setting`Fixes #1093