-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 enablement of AI support #14166
Fix enablement of AI support #14166
Conversation
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!
About the follow up:
For me it is actually even worse. Even when I activate the AI features, the 2 view do not show up in the menu. If I deactivate the feature I can still open them via the quick access.
Also I did not find any other UI contributions, so this PR closes #14167 |
e700392
to
5ef92ee
Compare
The ai-core package offers a preference context key, which can be used in scenarios like 'when' clauses for menus. This key was not integrated, leading to the deactivation of all dependent features. This is now fixed.
5ef92ee
to
716c03b
Compare
I updated the PR to fix the root cause of the issue 👍 |
@sdirix Does this now also fix the issue I described (the follow up Philip mentioned) |
Yes, that is fixed too 👍 |
What it does
The 'ai-core' package offers a preference context key, which is for example used in 'when' clauses for the AI terminal menu entries.
Due to an oversight in the AI contribution refactorings, this context key was never enabled. Therefore the Terminal AI support didn't show up anymore, even if the experimental AI support was enabled via the preferences. Neither the context menu nor the keyboard shortcut (Ctrl-I) was working.
This is now fixed
How to test
Ensure the AI experimental setting is enabled
Open a terminal view
Check that "Ask the AI" shows up in the context menu of the Terminal
Check that Ctrl-I enables the assistant
Disable the AI experimental setting
Check that "Ask the AI" doesn't show up in the context menu of the Terminal
Check that Ctrl-I does not enable the assistant
Follow-ups
N/A
Review checklist
Reminder for reviewers