feat: support access function for custom fs provider#4496
Conversation
|
/next |
Walkthrough修改引入了对 Changes
Sequence Diagram(s)sequenceDiagram
participant C as 客户端
participant F as FileServiceClient
participant P as Provider
C->>F: 调用 access(uri, F_OK)
F->>P: 检查是否支持 access 方法?
alt 支持 access
F->>P: 调用 access(uri, F_OK)
P->>F: 返回结果
else 不支持 access
F->>P: 尝试调用 stat(uri)
alt stat 调用成功
P->>F: 返回文件状态
F->>C: 返回 true
else 发生错误
P->>F: 返回错误信息
F->>C: 返回 false
end
end
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 ESLint
yarn install v1.22.22 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (9)
🔇 Additional comments (2)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
🎉 PR Next publish successful! 3.8.3-next-1742885210.0 |
|
/next |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4496 +/- ##
==========================================
- Coverage 53.13% 53.12% -0.01%
==========================================
Files 1665 1665
Lines 102640 102645 +5
Branches 22215 22216 +1
==========================================
- Hits 54535 54534 -1
- Misses 40019 40024 +5
- Partials 8086 8087 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
🎉 PR Next publish successful! 3.8.3-next-1742887161.0 |
Types
Background or solution
当采用插件进程提供的 vscode.FileSystem 时,在
mode === FileAccess.Constants.F_OK情况下使用等价的 stat 判断文件是否存在Changelog
support access function for custom fs provider
Summary by CodeRabbit
Bug Fixes
新特性