microsoft/vscode · error · Error
The settings `github.copilot.chat.anthropic.tools.websearch.
Error message
The settings `github.copilot.chat.anthropic.tools.websearch.allowedDomains` and `github.copilot.chat.anthropic.tools.websearch.blockedDomains` cannot be used together. Please configure only one.
What it means
Error "The settings `github.copilot.chat.anthropic.tools.websearch.allowedDomains` and `github.copilot.chat.anthropic.tools.websearch.blockedDomains` cannot be used together. Please configure only one." thrown in microsoft/vscode.
Source
Thrown at extensions/copilot/src/extension/byok/vscode-node/anthropicProvider.ts:283
const params: Anthropic.Beta.Messages.MessageCreateParamsStreaming = {
model: model.id,
messages: convertedMessages,
max_tokens: model.maxOutputTokens,
stream: true,
system: [system],
tools: tools.length > 0 ? tools : undefined,
thinking: supportsAdaptiveThinking
? { type: 'adaptive' as const }
: thinkingBudget ? { type: 'enabled' as const, budget_tokens: thinkingBudget } : undefined,
...(effort ? { output_config: { effort } } : {}),
context_management: contextManagement as Anthropic.Beta.Messages.BetaContextManagementConfig | undefined,
};
const wrappedProgress = new RecordedProgress(progress);
try {
if (webSearchDomainConflictError) {
throw new Error(webSearchDomainConflictError);
}
const result = await this._makeRequest(anthropicClient, wrappedProgress, params, betas, token, issuedTime);
if (result.ttft) {
pendingLoggedChatRequest.markTimeToFirstToken(result.ttft);
}
const responseDeltas: IResponseDelta[] = wrappedProgress.items.map((i): IResponseDelta => {
if (i instanceof LanguageModelTextPart) {
return { text: i.value };
} else if (i instanceof LanguageModelToolCallPart) {
return {
text: '',
copilotToolCalls: [{
name: i.name,
arguments: JSON.stringify(i.input),
id: i.callId
}]
};
} else if (i instanceof LanguageModelToolResultPart) {View on GitHub (pinned to a94b963a32)
When it happens
Trigger: Thrown at extensions/copilot/src/extension/byok/vscode-node/anthropicProvider.ts:283 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of microsoft/vscode@a94b963a32 (2026-08-12).
Data as JSON: /api/errors/2e9fc02f28d27840.
Report an issue: GitHub.