ASP.NET Core container quickstart: `docker-run: debug` task sample is missing its closing brace
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 88/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- csharp, docker, json, markdown
- Lĩnh vực
- documentation
Hướng nghiên cứu
Ví dụ bị lỗi là khối JSON cuối cùng trong docs/containers/quickstart-aspnet-core.md, khoảng dòng 146-163, dành cho tác vụ docker-run: debug. Hãy mở tệp đó, tìm đoạn mã kết thúc sau khối netCore và thêm dấu ngoặc nhọn đóng của đối tượng tác vụ. Hoàn thành khi đoạn mã được phân tích thành một đối tượng JSON đầy đủ, ví dụ bằng jsonc-parser, và khoảng trắng đứng trước dấu ngoặc nhọn đầu tiên đã được xóa.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Page: Tutorial: Create and containerize an ASP.NET Core app (docs/containers/quickstart-aspnet-core.md)
Problem
The last JSON sample on the page, which shows how to expose a fixed host port by changing the docker-run: debug task in .vscode/tasks.json, is missing its closing }. The object opened on the first line is never closed, so the snippet is not valid JSON and can't be pasted into tasks.json as shown:
{
"type": "docker-run",
"label": "docker-run: debug",
"dependsOn": [
"docker-build: debug"
],
"dockerRun": {
"ports": [
{ "hostPort": 5000, "containerPort": 5000 }
]
},
"netCore": {
"appProject": "${workspaceFolder}/netcorerest.csproj",
"enableDebugging": true
}
The braces open 3 times ({ task, dockerRun, netCore) but close only twice (dockerRun and netCore); the closing brace of the task object is missing. The same snippet is on the published page (checked today): it ends right after the netCore block.
I found this by parsing the fenced json blocks in docs/, api/, remote/ and learn/ with jsonc-parser; most reported blocks are intentional settings fragments, but this is the one complete task object that fails with CloseBraceExpected.
Expected
The sample is a complete, valid JSON object:
{
"type": "docker-run",
"label": "docker-run: debug",
"dependsOn": [
"docker-build: debug"
],
"dockerRun": {
"ports": [
{ "hostPort": 5000, "containerPort": 5000 }
]
},
"netCore": {
"appProject": "${workspaceFolder}/netcorerest.csproj",
"enableDebugging": true
}
}
(The leading space before the first { can go as well.)
Fix
Add the missing } at the end of the snippet in docs/containers/quickstart-aspnet-core.md (around line 146-163).
- Ngôn ngữ chính
- Markdown
- Star
- 6.7k
- Fork
- 5.8k
- Merge trung bình
- 11 giờ 53 phút
- Pull request đã merge (30 ngày)
- 137
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/vscode-docs
-
Security and enterprise docs overstate policy enforcement for Copilot harness sessions (ChatAgentMode, ChatMCP, network filter, tool approval)Có thể đã có người làm @alok-108 đã nhận 1 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 18/100
microsoft/vscode-docs#10489 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds (span:nth-child(6)):A11y_code.visualstudio.com_AI4WCó thể đã có người làm @ntrogh đã nhận 11 ngày trước. Đang mở
microsoft/vscode-docs#10424 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
How VS Code team uses AIĐang mởidea
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
microsoft/vscode-docs#10216 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add troubleshooting steps for the spawning of excessive rg processesCó thể đã có người làm @ntrogh đã nhận 120 ngày trước. Đang mởdoc-enhancement
microsoft/vscode-docs#9950 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Tie feature update/creation with corrected/available documentation before release.Có thể làm lại được @ntrogh đã nhận 149 ngày trước và không có pull request nào đang mở. Đang mởdocs-experience
microsoft/vscode-docs#9761 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoft/vscode-docs
Issue tương tự
-
area: design documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
eyalgolan/statecraft-israel#883 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[workshop-sync] workshop/side-quest-17-06-output-injection.md: stale add_comment.cjs line referencesĐang mởdocumentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
githubnext/gh-aw-workshop#4679 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agent-butler-finding chore
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
jordansmall/spindrift#5466 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
quarkusio/extensions#3459 ·