refac
This commit is contained in:
@@ -451,7 +451,7 @@
|
||||
if (!data?.path) return;
|
||||
if (type === 'terminal:display_file') {
|
||||
displayFileHandler(data.path, { showControls, showFileNavPath });
|
||||
} else if (type === 'terminal:write_file' || type === 'terminal:replace_file_content') {
|
||||
} else if (type === 'terminal:write_file') {
|
||||
showFileNavDir.set(data.path);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -338,7 +338,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
if (['write_file', 'replace_file_content'].includes(data?.name) && data?.params?.path) {
|
||||
if (['write_file'].includes(data?.name) && data?.params?.path) {
|
||||
showFileNavDir.set(res?.path ?? data.params.path);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user