Closed Ricbet closed 3 weeks ago
This PR was not deployed automatically as @Ricbet does not have access to the Railway project.
In order to get automatic PR deploys, please add @Ricbet to the project inside the project settings page.
此次更改引入了一个新的问题修复功能,涉及多个文件的更新。主要包括在 AINativeBrowserContribution
类中添加了 ProblemFixHandler
依赖项,以及新的 React 组件 ProblemFixComponent
的实现。此外,创建了 ProblemFixProviderRegistry
和 ProblemFixService
,用于管理和提供问题修复功能。还更新了本地化支持以适应新功能。
文件路径 | 更改摘要 |
---|---|
packages/ai-native/src/browser/... |
在 AINativeBrowserContribution 和 AIEditorContribution 中添加 ProblemFixHandler ,更新相关方法以支持问题修复。 |
packages/ai-native/src/browser/contrib/problem-fix/... |
新增 problem-fix.component.tsx 实现问题修复的 React 组件,新增 problem-fix.feature.registry.ts 定义问题修复提供者注册表,新增 problem-fix.handler.ts 实现自定义 Monaco 编辑器悬停参与者,新增 problem-fix.service.ts 提供问题修复服务。 |
packages/ai-native/src/browser/contrib/problem-fix/... |
新增 problem-fix.module.less 定义问题修复按钮的样式。 |
packages/ai-native/src/browser/index.ts |
更新导入和依赖注入配置,整合问题修复功能。 |
packages/ai-native/src/browser/types.ts |
新增 IProblemFixProviderRegistry 接口,更新 AINativeCoreContribution 接口以支持问题修复功能。 |
packages/core-browser/src/ai-native/ai-config.service.ts |
更新 IAINativeCapabilities 以支持问题修复功能。 |
packages/core-common/src/types/ai-native/index.ts |
在 IAINativeCapabilities 中新增 supportsProblemFix 属性。 |
packages/i18n/src/common/en-US.lang.ts |
在本地化文件中新增英文字符串 'Fix with AI' 。 |
packages/i18n/src/common/zh-CN.lang.ts |
在本地化文件中新增中文字符串 'AI 修复' 。 |
packages/startup/entry/sample-modules/ai-native/... |
在 AINativeContribution 中新增 registerProblemFixFeature 方法以注册问题修复功能。 |
[!TIP]
Announcements
- The review status is no longer posted as a separate comment when there are no actionable or nitpick comments. In such cases, the review status is included in the walkthrough comment. - We have updated our review workflow to use the Anthropic's Claude family of models. Please share any feedback in the [discussion post](https://discordapp.com/channels/1134356397673414807/1279579842131787838) on our Discord. - Possibly related PRs: Walkthrough comment now includes a list of potentially related PRs to help you recall past context. Please share any feedback in the [discussion post](https://discordapp.com/channels/1134356397673414807/1282535539299323995) on our Discord. - Suggested labels: CodeRabbit can now suggest labels by learning from your past PRs in the walkthrough comment. You can also provide custom labeling instructions in the UI or configuration file. - Possibly related PRs, automatic label suggestions based on past PRs, learnings, and possibly related issues require data opt-in (enabled by default).
Attention: Patch coverage is 3.53982%
with 109 lines
in your changes missing coverage. Please review.
Project coverage is 54.48%. Comparing base (
c7bbf3b
) to head (81b9337
). Report is 2 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
/next
🎉 PR Next publish successful!
3.3.4-next-1725949351.0
Types
Background or solution
https://github.com/user-attachments/assets/4346b816-192d-4c05-9f54-30ad0459e90c
Changelog
新增 registerProblemFixFeature API 支持 hover fix with AI
Summary by CodeRabbit
Summary by CodeRabbit
新功能
文档
样式