Skip to content

Commit 464a817

Browse files
committed
refactor: Clean up unused imports and update warning widget layout
1 parent 7c5ce0e commit 464a817

5 files changed

Lines changed: 2 additions & 15 deletions

File tree

com.microsoft.copilot.eclipse.ui/META-INF/MANIFEST.MF

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ Require-Bundle: com.microsoft.copilot.eclipse.core;bundle-version="0.15.0",
3131
org.eclipse.ui.editors;bundle-version="3.17.100",
3232
org.eclipse.ui;bundle-version="3.205.0",
3333
org.eclipse.ui.navigator;bundle-version="3.12.200",
34-
org.eclipse.jface.text;bundle-version="3.24.200",
35-
org.eclipse.jface.notifications;bundle-version="0.7.0",
34+
org.eclipse.jface.text;bundle-version="3.24.200",
3635
org.eclipse.core.runtime;bundle-version="[3.30.0,4.0.0)",
3736
org.eclipse.core.expressions,
3837
org.eclipse.jdt.annotation;resolution:=optional,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ protected void createWarnDialog(String message, int code, String modelProviderNa
573573
if (code == 402 && !byokQuotaExceeded) {
574574
planForActions = this.serviceManager.getAuthStatusManager().getQuotaStatus().copilotPlan();
575575
}
576-
new WarnWidget(this, SWT.BOTTOM, displayMessage, planForActions);
576+
new WarnWidget(this, SWT.NONE, displayMessage, planForActions);
577577
requestLayout();
578578
}
579579

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,13 @@
2727
import com.microsoft.copilot.eclipse.core.lsp.protocol.AgentRound;
2828
import com.microsoft.copilot.eclipse.core.lsp.protocol.AgentToolCall;
2929
import com.microsoft.copilot.eclipse.core.lsp.protocol.ChatProgressValue;
30-
import com.microsoft.copilot.eclipse.core.lsp.protocol.CopilotModel;
3130
import com.microsoft.copilot.eclipse.core.lsp.protocol.TodoItem;
3231
import com.microsoft.copilot.eclipse.core.lsp.protocol.ToolSpecificData;
33-
import com.microsoft.copilot.eclipse.core.lsp.protocol.quota.CopilotPlan;
3432
import com.microsoft.copilot.eclipse.ui.CopilotUi;
3533
import com.microsoft.copilot.eclipse.ui.chat.services.ChatServiceManager;
3634
import com.microsoft.copilot.eclipse.ui.chat.services.TodoListService;
3735
import com.microsoft.copilot.eclipse.ui.i18n.Messages;
3836
import com.microsoft.copilot.eclipse.ui.swt.CssConstants;
39-
import com.microsoft.copilot.eclipse.ui.utils.MenuUtils;
4037
import com.microsoft.copilot.eclipse.ui.utils.SwtUtils;
4138

4239
/**

com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/i18n/Messages.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,10 @@ public final class Messages extends NLS {
152152
public static String chat_addContext_tooltip;
153153
public static String chat_filePicker_title;
154154
public static String chat_filePicker_message;
155-
public static String chat_noQuotaView_fallbackModel;
156-
public static String chat_noQuotaView_updatePlanButton;
157155
public static String chat_noQuotaView_updatePlanButton_Tooltip;
158156
public static String chat_noQuotaView_enableAdditionalUsageButton;
159157
public static String chat_noQuotaView_enableAdditionalUsageButton_tooltip;
160158
public static String chat_noQuotaView_viewYourPlanButton_Tooltip;
161-
public static String chat_noQuotaView_proProplusWarnMsg;
162-
public static String chat_noQuotaView_cbCeWarnMsg;
163159
public static String chat_currentReferencedFile_description;
164160
public static String chat_turnWidget_copilot;
165161
public static String chat_turnWidget_user;

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,10 @@ chat_agentModeView_configureMcpSuffix=to configure MCP server
133133
chat_agentModeView_attachContextSuffix=to attach context
134134
chat_loadingView_title=Loading
135135
chat_loadingView_description=Initializing Copilot...
136-
chat_noQuotaView_fallbackModel=fallback model
137-
chat_noQuotaView_updatePlanButton=Upgrade Plan
138136
chat_noQuotaView_updatePlanButton_Tooltip=Upgrade your Copilot plan
139137
chat_noQuotaView_enableAdditionalUsageButton=Enable Additional Usage
140138
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.
141139
chat_noQuotaView_viewYourPlanButton_Tooltip=View your Copilot plan
142-
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.
143-
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.
144140
chat_noAuthView_title=No Copilot subscription found
145141
chat_noAuthView_description=Request a license from your organization manager or sign up for a 60 day trial
146142
chat_noAuthView_checkSubButton=Check subscription plans
@@ -208,7 +204,6 @@ model_hover_contextWindow=Context Window:
208204
model_hover_cost=Cost:
209205
chat_actionBar_modePicker_Tooltip=Set Agents
210206
chat_actionBar_modelPicker_Tooltip=Pick Model{0}
211-
212207
context_window_title=Context Window
213208
context_window_tokens={0} / {1} tokens
214209
context_window_system=System

0 commit comments

Comments
 (0)