体验: 目录对比改为忽略仅本地存在的项(如 node_modules),勾选后跳过本地全量扫描提速
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -225,8 +225,14 @@ export function getFileContent(params: { serverPath?: string; localPath?: string
|
||||
|
||||
/**
|
||||
* 对已映射目录执行目录对比。
|
||||
* includeLocalOnly=false 时跳过本地全量扫描,仅本地存在的项(如 node_modules)不计入差异。
|
||||
*/
|
||||
export function compareFolder(body: { serverPath: string; localPath?: string; recursive?: boolean }) {
|
||||
export function compareFolder(body: {
|
||||
serverPath: string
|
||||
localPath?: string
|
||||
recursive?: boolean
|
||||
includeLocalOnly?: boolean
|
||||
}) {
|
||||
return apiClient.post<{ diffs: FolderDiffItem[] }>("/api/compare/folder", { body })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user