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

Support for suppressible Chat license acknowledgement #316

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

breedloj
Copy link
Contributor

@breedloj breedloj commented Jan 9, 2025

Description of changes:
Adds support for the suppressible Chat license acknowledgement in the Q Chat UI. Upon acknowledgement the setting is persisted by the extension and passed to Mynah via init calls.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@breedloj breedloj force-pushed the breedloj/licenseSuppression branch 2 times, most recently from b61f313 to 089284f Compare January 9, 2025 19:54
@breedloj breedloj force-pushed the breedloj/licenseSuppression branch from 089284f to 7d36019 Compare January 9, 2025 19:59
@@ -45,7 +45,7 @@ public QLspConnectionProvider() throws IOException {
protected final void addEnvironmentVariables(final Map<String, String> env) {
String httpsProxyPreference = Activator.getDefault().getPreferenceStore().getString(AmazonQPreferencePage.HTTPS_PROXY);
String caCertPreference = Activator.getDefault().getPreferenceStore().getString(AmazonQPreferencePage.CA_CERT);
if (!StringUtils.isEmpty(caCertPreference)) {
if (!StringUtils.isEmpty(httpsProxyPreference)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nice catch

@@ -117,6 +117,9 @@ public final void handleCommand(final ParsedCommand parsedCommand, final Browser
AuthFollowUpClickedParams authFollowUpClickedParams = jsonHandler.convertObject(params, AuthFollowUpClickedParams.class);
handleAuthFollowUpClicked(authFollowUpClickedParams);
break;
case DISCLAIMER_ACKNOWLEDGED:
Activator.getPluginStore().put(PluginStoreKeys.CHAT_DISCLAIMER_ACKNOWLEDGED, "true");
Copy link
Contributor

Choose a reason for hiding this comment

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

in what condition would this be set to a false?

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.

2 participants