-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: VvppManagerをリファクタリング #2551
The head ref may contain hidden characters: "VvppManager\u306E\u30EA\u30D5\u30A1\u30AF\u30BF\u30EA\u30F3\u30B0"
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (3)
src/backend/electron/manager/vvppManager.ts:71
- [nitpick] Consider destructuring the parameters directly in the function signature for clarity.
markWillMove(params: { from: string; to: string; engineId: EngineId }) {
src/backend/electron/manager/vvppManager.ts:213
- Include the
from
andto
paths in the error message for more context.
log.error("Failed to rename engine directory: ", e);
src/backend/electron/manager/vvppManager.ts:255
- Include the error message in the log to provide more context about why the retry is happening.
log.warn(`Retrying... (${i + 1}/${maxRetries}):`);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (3)
src/backend/electron/manager/vvppManager.ts:97
- [nitpick] The error message 'Multiple installed engine directories found.' is unclear. Consider providing more details or instructions for the user.
throw new Error("Multiple installed engine directories found.");
src/backend/electron/manager/vvppManager.ts:249
- [nitpick] The function name 'retry' is ambiguous. Consider renaming it to 'retryOperation' or something more descriptive.
async function retry(fn: () => Promise<void>) {
src/backend/electron/manager/vvppManager.ts:249
- Ensure that the new behavior introduced by the 'retry' function is covered by tests.
async function retry(fn: () => Promise<void>) {
🚀 プレビュー用ページを作成しました 🚀 更新時点でのコミットハッシュ: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
細かい所をいくつか。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
再Approve。
あっ一度approveもらってたの気づいてませんでした!! 🙇 レビューありがとうございます、マージします! |
内容
VvppManagerをリファクタリングしてみました。
markしてhandleする機構上、これ以上は割と難しそうかも。
ついでにバグを2つ直してます。
to
ディレクトリではなく毎回取得するようにしたいずれも関数化して処理を整理していくと割と問題が見えてきたので、関数に切り分けていくのは大事だなと改めて思いました。
関連 Issue
の続き
その他