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
- 分支
- 241
- 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 ·
-
難度 3/5 1-2 天 新手友好度 35/100
Kong/httpsnippet#389 ·
-
難度 5/5 一週以上 新手友好度 25/100
Kong/httpsnippet#383 ·
-
難度 3/5 1-2 天 新手友好度 35/100
Kong/httpsnippet#379 ·
-
難度 3/5 1-2 天 新手友好度 48/100
Kong/httpsnippet#370 ·
相似的 Issue
-
check:failed streams:add
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
type: bug
難度 2/5 1-3 小時 新手友好度 84/100
interledger/rafiki#3986 ·
-
難度 2/5 1-3 小時 新手友好度 68/100
Doist/todoist-cli#576 ·
維護者通常 1 天內回覆
-
feature
難度 1/5 1 小時以內 新手友好度 72/100
vercel-labs/skills#2370 ·
維護者通常 1 天內回覆
-
🐛 Bug supabase/cli
難度 2/5 1-3 小時 新手友好度 84/100
維護者通常 1 天內回覆