Skip to content

Commit 391feed

Browse files
committed
Don't mention 'participant' in errors
1 parent 4600d99 commit 391feed

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/vs/workbench/api/common/extHostChatAgents2.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { StopWatch } from 'vs/base/common/stopwatch';
1515
import { assertType } from 'vs/base/common/types';
1616
import { URI } from 'vs/base/common/uri';
1717
import { Location } from 'vs/editor/common/languages';
18-
import { localize } from 'vs/nls';
1918
import { ExtensionIdentifier, IExtensionDescription } from 'vs/platform/extensions/common/extensions';
2019
import { ILogService } from 'vs/platform/log/common/log';
2120
import { ExtHostChatAgentsShape2, IChatAgentCompletionItem, IChatAgentHistoryEntryDto, IMainContext, MainContext, MainThreadChatAgentsShape2 } from 'vs/workbench/api/common/extHost.protocol';
@@ -273,10 +272,9 @@ export class ExtHostChatAgents2 implements ExtHostChatAgentsShape2 {
273272
}
274273
return { errorDetails: result?.errorDetails, timings: stream.timings, metadata: result?.metadata };
275274
}), token);
276-
277275
} catch (e) {
278276
this._logService.error(e, agent.extension);
279-
return { errorDetails: { message: localize('errorResponse', "Error from participant: {0}", toErrorMessage(e)), responseIsIncomplete: true } };
277+
return { errorDetails: { message: toErrorMessage(e), responseIsIncomplete: true } };
280278

281279
} finally {
282280
stream.close();

0 commit comments

Comments
 (0)