fix inline edit can't up error

This commit is contained in:
duanfuxiang
2025-04-30 18:47:14 +08:00
parent dfdb21e832
commit 92b5c8fe61
6 changed files with 97 additions and 39 deletions

View File

@@ -401,7 +401,7 @@ const Chat = forwardRef<ChatRef, ChatProps>((props, ref) => {
type: APPLY_VIEW_TYPE,
active: true,
state: {
file: opFile,
file: opFile.path,
oldContent: '',
newContent: toolArgs.content,
onClose: (applied: boolean) => {
@@ -452,7 +452,7 @@ const Chat = forwardRef<ChatRef, ChatProps>((props, ref) => {
type: APPLY_VIEW_TYPE,
active: true,
state: {
file: opFile,
file: opFile.path,
oldContent: fileContent,
newContent: appliedFileContent,
onClose: (applied: boolean) => {
@@ -494,7 +494,7 @@ const Chat = forwardRef<ChatRef, ChatProps>((props, ref) => {
type: APPLY_VIEW_TYPE,
active: true,
state: {
file: opFile,
file: opFile.path,
oldContent: fileContent,
newContent: appliedFileContent,
onClose: (applied: boolean) => {
@@ -536,7 +536,7 @@ const Chat = forwardRef<ChatRef, ChatProps>((props, ref) => {
type: APPLY_VIEW_TYPE,
active: true,
state: {
file: opFile,
file: opFile.path,
oldContent: fileContent,
newContent: appliedResult.content,
onClose: (applied: boolean) => {

View File

@@ -98,7 +98,7 @@ const CustomModeView = () => {
setCustomInstructions(customMode.customInstructions || '');
setSelectedTools(customMode.groups);
} else {
console.log("error, custom mode not found")
console.error("custom mode not found")
}
}
}, [selectedMode, customModeList]);