Skip to content
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

Merged
merged 3 commits into from
Sep 21, 2021

Conversation

Cammisuli
Copy link
Member

@Cammisuli Cammisuli commented Sep 17, 2021

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

@nx-cloud
Copy link

nx-cloud bot commented Sep 17, 2021

Nx Cloud Report

CI 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

Status Command
#000000 nx run-many --all --parallel --target=build
#000000 nx run-many --all --parallel --target=test
#000000 nx run-many --all --parallel --target=lint

Sent with 💌 from NxCloud.

} catch {
bashPath = '/bin/bash'; // Default to where bash is usually installed.
}
}
return new ShellExecution(config.displayCommand, {
Copy link
Member

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';
Copy link
Member

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?

Copy link
Member

@AgentEnder AgentEnder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Cammisuli Cammisuli merged commit fc4caea into nrwl:master Sep 21, 2021
@Cammisuli Cammisuli deleted the simplify-shell-execution branch September 21, 2021 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nx console vs code fails to execute commands
2 participants