Skip to content

Commit 8ce1ebf

Browse files
authored
Merge pull request #1502 from spenserblack/chore/devcontainer
Create codespace config
2 parents d51f330 + 238588a commit 8ce1ebf

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

.devcontainer/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ARG VARIANT="1"
2+
FROM mcr.microsoft.com/devcontainers/rust:${VARIANT}
3+
RUN apt update && apt install -y cmake

.devcontainer/devcontainer.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "Rust",
3+
"build": {
4+
"dockerfile": "Dockerfile",
5+
"args": { "VARIANT": "1" }
6+
},
7+
"customizations": {
8+
"vscode": {
9+
"extensions": [
10+
"EditorConfig.EditorConfig",
11+
"rust-lang.rust-analyzer"
12+
]
13+
}
14+
},
15+
"remoteUser": "vscode"
16+
}

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ indent_size = 2
1616
[Makefile]
1717
indent_style = tab
1818

19-
# Matches the exact files either package.json or .travis.yml
20-
[{package.json,.travis.yml}]
19+
# Matches .json files or the exact file .travis.yml
20+
[{*.json,.travis.yml}]
2121
indent_style = space
2222
indent_size = 2

0 commit comments

Comments
 (0)