mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
debt - remove inline chat preview mode (#237654)
This commit is contained in:
@@ -22,7 +22,7 @@ import { IInstantiationService } from '../../../../platform/instantiation/common
|
||||
import { ILogService } from '../../../../platform/log/common/log.js';
|
||||
import { IChatWidgetLocationOptions } from '../../chat/browser/chatWidget.js';
|
||||
import { isResponseVM } from '../../chat/common/chatViewModel.js';
|
||||
import { ACTION_REGENERATE_RESPONSE, ACTION_REPORT_ISSUE, ACTION_TOGGLE_DIFF, CTX_INLINE_CHAT_OUTER_CURSOR_POSITION, EditMode, InlineChatConfigKeys, MENU_INLINE_CHAT_WIDGET_SECONDARY, MENU_INLINE_CHAT_WIDGET_STATUS } from '../common/inlineChat.js';
|
||||
import { ACTION_REGENERATE_RESPONSE, ACTION_REPORT_ISSUE, ACTION_TOGGLE_DIFF, CTX_INLINE_CHAT_OUTER_CURSOR_POSITION, MENU_INLINE_CHAT_WIDGET_SECONDARY, MENU_INLINE_CHAT_WIDGET_STATUS } from '../common/inlineChat.js';
|
||||
import { EditorBasedInlineChatWidget } from './inlineChatWidget.js';
|
||||
|
||||
export class InlineChatZoneWidget extends ZoneWidget {
|
||||
@@ -84,10 +84,8 @@ export class InlineChatZoneWidget extends ZoneWidget {
|
||||
},
|
||||
rendererOptions: {
|
||||
renderTextEditsAsSummary: (uri) => {
|
||||
// render edits as summary only when using Live mode and when
|
||||
// dealing with the current file in the editor
|
||||
return isEqual(uri, editor.getModel()?.uri)
|
||||
&& configurationService.getValue<EditMode>(InlineChatConfigKeys.Mode) === EditMode.Live;
|
||||
// render when dealing with the current file in the editor
|
||||
return isEqual(uri, editor.getModel()?.uri);
|
||||
},
|
||||
renderDetectedCommandsWithRequest: true,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user