Add codespaces/devcontainer config files (#1800)

* Add devcontainer config files for codespaces and vscode

* add cspell extension to vscode

* pr feedback and exclude oncreate from cspell

* yet more cspell exclusions
This commit is contained in:
Ashley Stanton-Nurse 2024-09-12 16:37:46 -07:00 коммит произвёл GitHub
Родитель 1fbc5dd9fc
Коммит 09c749a250
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
5 изменённых файлов: 51 добавлений и 2 удалений

Просмотреть файл

@ -0,0 +1,23 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/rust
{
"name": "Azure SDK for Rust",
"image": "mcr.microsoft.com/devcontainers/rust:1-1-bullseye",
"onCreateCommand": ".devcontainer/oncreate",
"features": {
"ghcr.io/devcontainers/features/azure-cli:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/sshd:1": {}
},
"customizations": {
"vscode": {
"extensions": [
"tamasfe.even-better-toml",
"editorconfig.editorconfig",
"rust-lang.rust-analyzer",
"streetsidesoftware.code-spell-checker",
"vadimcn.vscode-lldb"
]
}
}
}

8
.devcontainer/oncreate Executable file
Просмотреть файл

@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
echo "Running Azure SDK for Rust devcontainer post create script..."
echo "Updating toolchains..."
rustup show

12
.github/dependabot.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,12 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for more information:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
# https://containers.dev/guide/dependabot
version: 2
updates:
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: weekly

6
.vscode/cspell.json поставляемый
Просмотреть файл

@ -5,8 +5,12 @@
"ignorePaths": [
"**/test-resources.bicep",
"**/test-resources.json",
".vscode/cspell.json",
".devcontainer/devcontainer.json",
".devcontainer/oncreate",
".github/CODEOWNERS",
".github/dependabot.yml",
".vscode/cspell.json",
".vscode/extensions.json",
"NOTICE.txt",
"eng/",
"*.dict.txt",

4
.vscode/extensions.json поставляемый
Просмотреть файл

@ -2,6 +2,8 @@
"recommendations": [
"tamasfe.even-better-toml",
"editorconfig.editorconfig",
"rust-lang.rust-analyzer"
"rust-lang.rust-analyzer",
"streetsidesoftware.code-spell-checker",
"vadimcn.vscode-lldb"
]
}