SetCwdResult
이 콘텐츠는 아직 번역되지 않았습니다.
type SetCwdResult = | { from: string; status: "changed"; to: string;} | { reason: | "turn_running" | "not_absolute" | "not_found" | "not_directory" | "not_allowed"; status: "rejected";};setCwd() 结果联合:changed = 已切换(from/to 为切换前后的绝对路径;to 与 from 相同时 亦回 changed,零副作用);rejected 四拒绝码沿 kernel resolveSessionCwd(not_absolute / not_found / not_directory / not_allowed)+ turn_running(运行中不切、不排队)。
이 페이지가 도움이 되었나요?
피드백 감사합니다. 이 문서를 계속 개선하겠습니다.