Skip to content

Commit 7c5ce0e

Browse files
committed
Address comments.
1 parent 89a9b43 commit 7c5ce0e

5 files changed

Lines changed: 5 additions & 68 deletions

File tree

com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/lsp/CopilotLanguageClient.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,6 @@ public CompletableFuture<CodingAgentMessageResult> onCodingAgentMessage(CodingAg
359359
*/
360360
@JsonNotification("copilot/quotaWarning")
361361
public void onQuotaWarning(QuotaWarningParams params) {
362-
CopilotCore.LOGGER.info("Quota warning received: " + params);
363362
if (eventBroker != null) {
364363
eventBroker.post(CopilotEventConstants.TOPIC_QUOTA_WARNING, params);
365364
}

com.microsoft.copilot.eclipse.core/src/com/microsoft/copilot/eclipse/core/lsp/protocol/quota/QuotaWarningParams.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
*/
2020
public record QuotaWarningParams(String title, String message, String severity, QuotaSnapshotParams chat,
2121
QuotaSnapshotParams completions,
22-
@SerializedName("premium_interactions") QuotaSnapshotParams premiumInteractions, String copilotPlan) {
22+
@SerializedName("premium_interactions") QuotaSnapshotParams premiumInteractions, CopilotPlan copilotPlan) {
2323
}

com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/QuotaActions.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ public final class QuotaActions {
3131
public record QuotaAction(String label, String tooltip, String url, boolean primary) {
3232
}
3333

34+
private QuotaActions() {
35+
}
36+
3437
/**
3538
* Returns the ordered list of {@link QuotaAction}s appropriate for the supplied plan.
3639
*

com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/i18n/messages.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ chat_noQuotaView_fallbackModel=fallback model
137137
chat_noQuotaView_updatePlanButton=Upgrade Plan
138138
chat_noQuotaView_updatePlanButton_Tooltip=Upgrade your Copilot plan
139139
chat_noQuotaView_enableAdditionalUsageButton=Enable Additional Usage
140-
chat_noQuotaView_enableAdditionalUsageButton_tooltip=Pay-as-you-go usage of additional AI credits once your run out of your included usage. Set a budget to cap your maximum monthly spend.
140+
chat_noQuotaView_enableAdditionalUsageButton_tooltip=Pay-as-you-go usage of additional AI credits once you run out of your included usage. Set a budget to cap your maximum monthly spend.
141141
chat_noQuotaView_viewYourPlanButton_Tooltip=View your Copilot plan
142142
chat_noQuotaView_proProplusWarnMsg=You have exceeded your premium request allowance. We have automatically switched you to **%s** which is included with your plan. [Enable additional paid premium requests](https://aka.ms/github-copilot-manage-overage) to continue using premium models.
143143
chat_noQuotaView_cbCeWarnMsg=You have exceeded your free request allowance. We have automatically switched you to **%s** which is included with your plan. To enable additional paid premium requests, contact your organization admin.

com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/notifications/QuotaNotificationManager.java

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)