mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 23:06:49 +01:00
fix: conditionally attach diagnostics based on configuration setting (#297049)
This commit is contained in:
@@ -508,6 +508,10 @@ export class InlineChatController implements IEditorContribution {
|
||||
try {
|
||||
await this._applyModelDefaults(session, sessionStore);
|
||||
|
||||
if (arg) {
|
||||
arg.attachDiagnostics ??= this._configurationService.getValue(InlineChatConfigKeys.RenderMode) === 'zone';
|
||||
}
|
||||
|
||||
// ADD diagnostics (only when explicitly requested)
|
||||
if (arg?.attachDiagnostics) {
|
||||
const entries: IChatRequestVariableEntry[] = [];
|
||||
|
||||
Reference in New Issue
Block a user