1
0
mirror of https://github.com/o2sh/onefetch synced 2024-06-28 13:44:36 +00:00

Add devcontainer/codespace config (#857)

* Add devcontainer/codespace config

* Fix devcontainer source

* Add note

* Install cmake to devcontainer

Required by libz-sys

* Run `apt update` first

* Run apt commands in sudo mode

* Use `-y` flag

🤦

* Exclude assets from VSCode search
This commit is contained in:
Spenser Black 2022-11-13 18:31:08 -05:00 committed by GitHub
parent 9262f13253
commit 944ce50bd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 0 deletions

4
.devcontainer/Dockerfile Normal file
View File

@ -0,0 +1,4 @@
# NOTE: see https://hub.docker.com/_/microsoft-vscode-devcontainers
ARG VARIANT="buster"
FROM mcr.microsoft.com/vscode/devcontainers/rust:1-${VARIANT}
RUN sudo apt update && sudo apt install -y cmake

View File

@ -0,0 +1,9 @@
{
"name": "Rust",
"build": {
"dockerfile": "Dockerfile",
"args": { "VARIANT": "buster" }
},
"extensions": ["EditorConfig.EditorConfig"],
"remoteUser": "vscode"
}

View File

@ -13,3 +13,7 @@ indent_size = 2
[{Makefile,.SRCINFO}]
indent_style = tab
[*.json]
indent_style = space
indent_size = 2

6
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"search.exclude": {
"**/node_modules": false,
"**/target": true
}
}