Skip to content

Commit 14b0836

Browse files
authored
Refactor devcontainer.json to enhance VS Code settings and queries (#45925)
1 parent a3d6213 commit 14b0836

File tree

1 file changed

+54
-18
lines changed

1 file changed

+54
-18
lines changed

.devcontainer/devcontainer.json

+54-18
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,57 @@
11
{
22
"name": "C# (.NET)",
3-
"image": "mcr.microsoft.com/devcontainers/dotnet:latest"
4-
5-
// Features to add to the dev container. More info: https://containers.dev/features.
6-
// "features": {},
7-
8-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
9-
// "forwardPorts": [5000, 5001],
10-
// "portsAttributes": {
11-
// "5001": {
12-
// "protocol": "https"
13-
// }
14-
// }
15-
16-
// Use 'postCreateCommand' to run commands after the container is created.
17-
// "postCreateCommand": "dotnet restore",
18-
19-
// Configure tool-specific properties.
20-
// "customizations": {},
3+
"image": "mcr.microsoft.com/devcontainers/dotnet:latest",
4+
"customizations": {
5+
"vscode": {
6+
"settings": {
7+
"githubIssues.queries": [
8+
{
9+
"label": "My dotnet/docs Issues",
10+
"query": "is:open assignee:${user} repo:dotnet/docs"
11+
},
12+
{
13+
"label": "My seQUESTered dotnet/docs Issues",
14+
"query": "is:open assignee:${user} repo:dotnet/docs sort:updated-desc -label:needs-more-info label:\":pushpin: seQUESTered\""
15+
},
16+
{
17+
"label": "Created dotnet/docs Issues",
18+
"query": "author:${user} state:open repo:dotnet/docs sort:created-desc"
19+
},
20+
{
21+
"label": "Recent Issues",
22+
"query": "state:open repo:dotnet/docs sort:updated-desc"
23+
}
24+
],
25+
"githubPullRequests.queries": [
26+
{
27+
"label": "Waiting for dotnet/docs Review",
28+
"query": "repo:dotnet/docs is:open team-review-requested:dotnet/docs"
29+
},
30+
{
31+
"label": "Waiting For Just My Review (dotnet/docs)",
32+
"query": "repo:dotnet/docs is:open review-requested:${user} -team-review-requested:dotnet/docs"
33+
},
34+
{
35+
"label": "Assigned To Me (dotnet/docs)",
36+
"query": "repo:dotnet/docs is:open assignee:${user}"
37+
},
38+
{
39+
"label": "Created By Me (dotnet/docs)",
40+
"query": "repo:dotnet/docs is:open author:${user}"
41+
}
42+
]
43+
},
44+
"extensions": [
45+
"Acrolinx.vscode-sidebar",
46+
"DotJoshJohnson.xml",
47+
"GitHub.copilot",
48+
"GitHub.copilot-chat",
49+
"GitHub.vscode-pull-request-github",
50+
"IEvangelist.xref-helper",
51+
"docsmsft.docs-authoring-pack",
52+
"ms-dotnettools.csdevkit",
53+
"ms-dotnettools.csharp"
54+
]
55+
}
56+
}
2157
}

0 commit comments

Comments
 (0)