fix: correct powershell import casing#570
Merged
ximu3 merged 1 commit intoximu3:mainfrom May 3, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes TypeScript typecheck/build failures caused by incorrect import/export path casing for the PowerShell utility module (important on case-sensitive filesystems).
Changes:
- Update
src/main/utils/index.tsto export from./powershell(lowercase) instead of./Powershell. - Update
src/main/utils/common.tsto importpsManagerfrom./powershell(lowercase) instead of./Powershell.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/main/utils/index.ts | Fixes barrel export path casing to match powershell.ts. |
| src/main/utils/common.ts | Fixes psManager import path casing to match powershell.ts. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
|
该修复曾在#364 引入又被作者在之后回退。我估计是因为作者的本地仓库此处的文件名是大小写混合的,为了检查通过又改了回来。而其他人直接云端拉下来的仓库是纯小写的。 造成这种现象的原因主要是Windows系统对文件名大小写不敏感,这导致云端与直接拉下来的仓库对应文件名都是纯小写的,但是本地文件改名为大小写混合后不会被git检测到更改。这种不一致的大小写会被检查器识别到。 我认为此处也确实值得统一,无论是修改仓库的文件命名还是修改导入处的文件名。 此条留言只是作为一个提醒:这其中有这样一个大小写不敏感的问题。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复 typecheck 和 build 报错