大家好,
主要想分享一个刚刚肝出来的 VS Code 插件:WTF Commit。
起因: 最近想找个 VS Code 插件来自动生成 Git Commit Message 。试了好几个热门插件,发现大多数都有几个问题:
本来想给某个开源插件提 PR 增加自定义功能,结果发现老代码改起来太痛苦,各种依赖报错。一气之下,决定遵循“奥卡姆剃刀”原则,从零开发一个只做这一件事的极简插件。
核心功能 & 特点:
settings.json 里,而是走 VS Code 原生的 SecretStorage 安全存储。Cmd+Opt+G),可选开启 Auto Commit 和 Auto Push。按一下,直接生成 -> 提交 -> 推送一条龙。插件名字由来: 起名废,写代码时就在想 "What The F**k should I name this commit?",于是就叫 WTF Commit 了。希望它能帮你解决写 Commit 时的抓狂。
链接:
代码完全开源,基于 TypeScript 开发,目前非常轻量。如果你也有类似的需求,欢迎试用,也欢迎提 Issue 或 PR !
1
jeffw 1 天前
vscode 不是自带这个功能吗?
|
4
aarontian 1 天前
能配置 commit message 风格提示词吗,我之前在用一个能配的,不过只支持 Anthropic
|
5
handsomebro OP @aarontian 支持自定义 SYSTEM PROMPT ,也就是你说的:commit message 风格提示词
|
6
handsomebro OP @jeffw 之前一直在 GitHub Desktop 上使用,但免费版有次数限制,而且不支持自定义语言(中文)。
|
7
jukanntenn 8 小时 3 分钟前
我添加了 GLM 的 key ,依然提示错误:OpenAI key not set
|
8
jukanntenn 7 小时 55 分钟前
好像 custom 有些 bug ,我接入英伟达的接口,模型 minimax2.1 ,返回的结果:
``` <think>The changes are: 1. In `src/pool.rs`: - Added `use log::error;` import - Changed two `self.ticks.update(...)` calls from using the try operator (`?`) to using `match` expressions that log an error and return the error if one occurs. 2. In `src/quoter.rs`: - Added `use log::error;` import - Changed the `pool.get_output_amount(...)` call from using the try operator (`?`) to using a `match` expression that logs an error and returns the error if one occurs. The changes are about error handling and logging. They are making the error handling more explicit by logging errors before returning them. The most significant change is the addition of error logging in both files. This is a fix in the sense that it improves error reporting, but it doesn't fix a bug per se. It's more of a refactor to add logging. The conventional commit type for such changes would be either `fix` (if we consider it as fixing the lack of logging) or `refactor` (if we consider it as refactoring the error handling). However, since the primary purpose is to add logging for better error reporting, I think ` ``` |