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 enablement of AI support #14166

Merged
merged 1 commit into from
Sep 16, 2024
Merged

Conversation

planger
Copy link
Contributor

@planger planger commented Sep 15, 2024

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

@JonasHelming
Copy link
Contributor

@eneufeld FYI

This fixes the first part of #14167

@eneufeld Could you check if there are any other UI contributions?

Copy link
Contributor

@JonasHelming JonasHelming left a 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.

@JonasHelming
Copy link
Contributor

Also I did not find any other UI contributions, so this PR closes #14167

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.
@planger planger changed the title Fix enablement of Terminal AI support Fix enablement of AI support Sep 16, 2024
@sdirix
Copy link
Member

sdirix commented Sep 16, 2024

I updated the PR to fix the root cause of the issue 👍

@planger planger merged commit beabfba into eclipse-theia:master Sep 16, 2024
11 checks passed
@planger planger deleted the fix-ai-agent branch September 16, 2024 07:38
@planger planger added this to the 1.54.0 milestone Sep 16, 2024
@JonasHelming
Copy link
Contributor

@sdirix Does this now also fix the issue I described (the follow up Philip mentioned)

@sdirix
Copy link
Member

sdirix commented Sep 16, 2024

@sdirix Does this now also fix the issue I described (the follow up Philip mentioned)

Yes, that is fixed too 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants