Improve code snipper HTTP
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- typescript
- 领域
- devtools
调研方向
首先重现 issue 中 request-snippet 的步骤,并比较生成的 HTTP 和 CURL 输出,重点关注大小写和格式。HTTP 代码片段保持与其标头相同的格式,并与现有的 CURL 行为一致时,这项工作就完成了。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
When the HTTP code snippet is generated, it is generated with the first letter in uppercase and the format should be the same as in the header. A difference if the type CURL is selected maintains the correct format.
To Reproduce
Execute a example of request.
Clic in code snipper {}.
In code select HTTP.
Expected behavior
The expected behavior is to keep the same format as the header, as is done in the CURL.
Platform:
OS: Windows 10
vscode version: 1.66.2
extension version: 1.18.7
Example:
Screenshot type http:

Screenshot type curl:

best regards
- 主要语言
- TypeScript
- 星标
- 1.2k
- 派生
- 245
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Kong/httpsnippet 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 62/100
Kong/httpsnippet#356 ·
-
难度 4/5 3-5 天 新手友好度 35/100
Kong/httpsnippet#397 ·
-
难度 3/5 1-2 天 新手友好度 35/100
Kong/httpsnippet#389 ·
-
难度 5/5 一周以上 新手友好度 25/100
Kong/httpsnippet#383 ·
-
Bug: R Code Generation Does Not Quote Parameters with Special Characters (e.g., `codes[]`)可能已有人在做 @abansal21 于 499 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 35/100
Kong/httpsnippet#379 ·
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
rel: fix
难度 2/5 1-3 小时 新手友好度 68/100
Deltares/fews-web-oc#2400 ·
维护者通常 1 天内回复
-
Command bar: Tab-to-search on claude.ai falls back to Google site: search instead of opening a prompt on Claude可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
ardia-browser/ardia#4426 ·
维护者通常 1 天内回复
-
Bug report: isValidISODateDashOnly accepts text before or after the date-time可能已有人在做 @bardrop 今天认领。 未关闭
难度 1/5 1-3 小时 新手友好度 88/100
pnp/cli-microsoft365#7713 ·
维护者通常 1 天内回复
-
Diagram: Journey Type: Bug / Error
难度 2/5 1-3 小时 新手友好度 62/100
mermaid-js/mermaid-v13#1293 ·
维护者通常 1 天内回复