-
Notifications
You must be signed in to change notification settings - Fork 870
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
Resolves: Add GitHub Codespaces configuration #3489
base: master
Are you sure you want to change the base?
Resolves: Add GitHub Codespaces configuration #3489
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! Thank you for your contribution. Please note a few comments
@@ -0,0 +1,32 @@ | |||
{ | |||
"name": " Codespace", | |||
"image": "mcr.microsoft.com/vscode/devcontainers/dotnet:0.201.9-5.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use newer "mcr.microsoft.com/vscode/devcontainers/dotnet:3.1" image version?
"ms-vscode.vscode-typescript-next", | ||
"ecmel.vscode-html-css", | ||
], | ||
"postCreateCommand": "src/dev.sh layout && src/dev.sh build" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if "dev.sh build" is necessary because layout
command already contains all build steps.
// JS/TS specific | ||
"dbaeumer.vscode-eslint", | ||
"ms-vscode.vscode-typescript-next", | ||
"ecmel.vscode-html-css", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"ecmel.vscode-html-css", | |
"ecmel.vscode-html-css", | |
// Azure Pipelines specific | |
"ms-vscode.azure-account", | |
"ms-azure-devops.azure-pipelines", |
ready-to-start GitHub Codespaces configuration with all necessary tooling
in addition, it provides basic tools for:
The configuration consists of:
"image":
- a declaration of the Docker image that the Codespace container is created from (this is a list of images and code examples that work with GitHub Codespaces)"mcr.microsoft.com/vscode/devcontainers/dotnet:0.201.9-5.0"
- the Codespace container runs from an Ubuntu 20.04 image with .NET Core SDK installed (0.201.9
is the latest .NET Core SDK Docker image tagged version)"settings":
- a list of VS Code settings to be applied automatically after the Codespace container is created (.editorconfig overrides these)"workbench.colorTheme": "Default Dark+"
- sets the theme of the VS Code workbench to theDefault Dark+
theme"terminal.integrated.defaultProfile.linux": "pwsh"
- sets the default VS Code terminal to PowerShell Coreextensions:
- a list of VS Code extensions that are automatically installed after the Codespace container is created"coenraads.bracket-pair-colorizer"
- sets different colors for each nested pair of brackets"vscode-icons-team.vscode-icons"
- provides a huge set of icons for the VS Code explorer"editorconfig.editorconfig"
- attempts to override user/workspace settings with those in the .editorconfig"eamodio.gitlens"
- provides git information directly inside the code"cschleiden.vscode-github-actions"
and"redhat.vscode-yaml"
- provide YAML and GitHub Actions support"bierner.markdown-preview-github-styles"
and"ban.spellright"
- provide assistance with writing Markdown documentation"ms-dotnettools.csharp"
and"VisualStudioExptTeam.vscodeintellicode"
- provide basic Visual Studio tooling"ms-vscode.powershell"
- provides the functionality of Windows PowerShell ISE inside VS Code"jmrog.vscode-nuget-package-manager"
- provides use of the NuGet library through the Command Palette"dbaeumer.vscode-eslint"
- most popular linter for JS"ms-vscode.vscode-typescript-next"
- JS and TS intellisense support"postCreateCommand"
- is a string of commands separated by&&
that execute after the container has been built and the source code has been clonedThis GitHub Codespace configuration can also be used locally with the Remote - Containers extension for VS Code. It automatically creates and runs a Docker container based on the
devcontainer.json
configuration inside the repo, so anyone could work on the project from any computer, without the need to install anything other than VS Code and Docker.Resolves #3488