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

fix: enable generate from context menu setting take effect immediately #1066

Merged
merged 1 commit into from Apr 23, 2021

Conversation

sandikbarr
Copy link
Contributor

With how the "when" clause context for isGenerateFromContextMenuEnabled is just getting set on activate, this setting isn't applying immediately like other VS Code settings do. Seems like you have to reload the window to get the setting to work.

But the "when" clause can read from the config settings in order to toggle it on/off in your current VS Code session, so this change should fix that.

@nx-cloud
Copy link

nx-cloud bot commented Apr 22, 2021

Nx Cloud Report

CI ran the following commands for commit 62a7a28. 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=lint
#000000 nx run-many --all --parallel --target=test

Sent with 💌 from NxCloud.

@@ -47,7 +47,7 @@
"menus": {
"explorer/context": [
{
"when": "isGenerateFromContextMenuEnabled",
"when": "isAngularWorkspace && config.nxConsole.enableGenerateFromContextMenu || isNxWorkspace && config.nxConsole.enableGenerateFromContextMenu",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

doesn't support parens with the || and &&, so the condition is a bit long

@Cammisuli Cammisuli merged commit c3f2b92 into nrwl:master Apr 23, 2021
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.

None yet

2 participants