mirror of
https://github.com/EthanMarti/infio-copilot.git
synced 2026-05-06 06:56:29 +00:00
fix inline edit can't up error
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user