Skip to content

Refactor devcontainer.json for improved VS Code settings #45925

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 54 additions & 18 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,57 @@
{
"name": "C# (.NET)",
"image": "mcr.microsoft.com/devcontainers/dotnet:latest"

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [5000, 5001],
// "portsAttributes": {
// "5001": {
// "protocol": "https"
// }
// }

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "dotnet restore",

// Configure tool-specific properties.
// "customizations": {},
"image": "mcr.microsoft.com/devcontainers/dotnet:latest",
"customizations": {
"vscode": {
"settings": {
"githubIssues.queries": [
{
"label": "My dotnet/docs Issues",
"query": "is:open assignee:${user} repo:dotnet/docs"
},
{
"label": "My seQUESTered dotnet/docs Issues",
"query": "is:open assignee:${user} repo:dotnet/docs sort:updated-desc -label:needs-more-info label:\":pushpin: seQUESTered\""
},
{
"label": "Created dotnet/docs Issues",
"query": "author:${user} state:open repo:dotnet/docs sort:created-desc"
},
{
"label": "Recent Issues",
"query": "state:open repo:dotnet/docs sort:updated-desc"
}
],
"githubPullRequests.queries": [
{
"label": "Waiting for dotnet/docs Review",
"query": "repo:dotnet/docs is:open team-review-requested:dotnet/docs"
},
{
"label": "Waiting For Just My Review (dotnet/docs)",
"query": "repo:dotnet/docs is:open review-requested:${user} -team-review-requested:dotnet/docs"
},
{
"label": "Assigned To Me (dotnet/docs)",
"query": "repo:dotnet/docs is:open assignee:${user}"
},
{
"label": "Created By Me (dotnet/docs)",
"query": "repo:dotnet/docs is:open author:${user}"
}
]
},
"extensions": [
"Acrolinx.vscode-sidebar",
"DotJoshJohnson.xml",
"GitHub.copilot",
"GitHub.copilot-chat",
"GitHub.vscode-pull-request-github",
"IEvangelist.xref-helper",
"docsmsft.docs-authoring-pack",
"ms-dotnettools.csdevkit",
"ms-dotnettools.csharp"
]
}
}
}