debt - remove inline chat preview mode (#237654)

This commit is contained in:
Johannes Rieken
2025-01-10 15:24:34 +01:00
committed by GitHub
parent 52a5dd113f
commit 24f6dafe20
11 changed files with 141 additions and 313 deletions

View File

@@ -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,
}