File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
authentication/vscode-node Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ export class VSCodeCopilotTokenManager extends BaseCopilotTokenManager {
8989 case TokenErrorNotificationId . ServerError :
9090 case TokenErrorNotificationId . FeatureFlagBlocked :
9191 case TokenErrorNotificationId . SpammyUser :
92+ case TokenErrorNotificationId . SnippyNotConfigured :
9293 throw new ContactSupportError ( message ) ;
9394 }
9495 }
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export class ChatQuotaService extends Disposable implements IChatQuotaService {
3838 }
3939
4040 processQuotaHeaders ( headers : IHeaders ) : void {
41- const quotaHeader = headers . get ( 'x-quota-snapshot-premium_models' ) || headers . get ( 'x-quota-snapshot-premium_interactions' ) ;
41+ const quotaHeader = this . _authService . copilotToken ?. isFreeUser ? headers . get ( 'x-quota-snapshot-chat' ) : headers . get ( 'x-quota-snapshot-premium_models' ) || headers . get ( 'x-quota-snapshot-premium_interactions' ) ;
4242 if ( ! quotaHeader ) {
4343 return ;
4444 }
You can’t perform that action at this time.
0 commit comments