Closed bytemain closed 1 week ago
🚅 Previously deployed to Railway in the core project. Environment has been deleted.
这些更改主要包括在 inline-completions
模块中替换和改进现有方法以及实现。新增了属性和设置选项,删除了过时的类型,并调整了接口和方法签名。同时,为缓存功能引入了新的偏好设置,增强了功能和灵活性。
文件路径 | 变更摘要 |
---|---|
packages/ai-native/src/browser/contrib/inline-completions/completeProvider.ts |
引入新依赖,更新接口和方法签名,添加 workspaceDir 属性。 |
packages/ai-native/src/browser/contrib/inline-completions/model/competionModel.ts |
移除 CompletionRequestBean 接口。 |
packages/ai-native/src/browser/contrib/inline-completions/promptCache.ts |
引入新方法,更新现有方法参数,添加缓存相关逻辑和实现。 |
packages/ai-native/src/browser/contrib/inline-completions/service/ai-completions.service.ts |
修改方法签名和参数类型,添加属性。 |
packages/ai-native/src/browser/contrib/inline-completions/types.ts |
为 ICompletionContext 接口添加 workspaceDir 属性。 |
packages/ai-native/src/browser/ai-core.contribution.ts |
为偏好设置添加新选项 InlineCompletionsCacheEnabled 。 |
packages/ai-native/src/browser/preferences/schema.ts |
添加新偏好设置 InlineCompletionsCacheEnabled 。 |
packages/core-common/src/settings/ai-native.ts |
为枚举添加 InlineCompletionsCacheEnabled 值。 |
packages/i18n/src/common/en-US.lang.ts |
添加新偏好设置的本地化字符串。 |
packages/i18n/src/common/zh-CN.lang.ts |
添加新偏好设置的本地化字符串。 |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@coderabbitai generate interesting stats about this repository and render them as a table.
[!TIP] For best results, initiate chat on the files or code changes.
@bytemain 以下是这个代码库的一些有趣的统计数据:
统计项 | 数值 |
---|---|
作者数量 | 119 |
代码行数 | 1,003,644 |
文件数量 | 3,256 |
TODO 注释数量 | 0 |
如果需要其他统计信息,请告诉我。
Attention: Patch coverage is 12.50000%
with 35 lines
in your changes missing coverage. Please review.
Project coverage is 55.02%. Comparing base (
29de686
) to head (d557500
). Report is 1 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Types
Background or solution
补全 context 中加入文件完整路径,工作区路径
Changelog
add
workspaceDir
andfileUrl
into request completion optionSummary by CodeRabbit
新功能
ICompletionContext
接口中增加了workspaceDir
属性。AINativeBrowserContribution
类中增加了InlineCompletionsCacheEnabled
的偏好设置。修复
complete
方法的参数类型和实现,以使用新的参数类型。IAICompletionOption
而不是字符串进行缓存键的计算和存储。优化
PromptCache
类,增加了启用缓存的相关逻辑和dispose
方法。