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:
Родитель
1fbc5dd9fc
Коммит
09c749a250
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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
|
|
@ -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
|
|
@ -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",
|
||||
|
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче