Skip to content

Commit 5963cb3

Browse files
committed
chore: add lithia extension to devcontainer
1 parent 4e0af47 commit 5963cb3

File tree

3 files changed

+35
-38
lines changed

3 files changed

+35
-38
lines changed

.devcontainer/devcontainer.json

+34-35
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,38 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
22
// https://github.com/microsoft/vscode-dev-containers/tree/v0.202.5/containers/go
33
{
4-
"name": "Go",
5-
"build": {
6-
"dockerfile": "Dockerfile",
7-
"args": {
8-
// Update the VARIANT arg to pick a version of Go: 1, 1.16, 1.17
9-
// Append -bullseye or -buster to pin to an OS version.
10-
// Use -bullseye variants on local arm64/Apple Silicon.
11-
"VARIANT": "1-bullseye",
12-
// Options
13-
"NODE_VERSION": "lts/*"
14-
}
15-
},
16-
"runArgs": [ "--init", "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],
17-
18-
// Set *default* container specific settings.json values on container create.
19-
"settings": {
20-
"go.toolsManagement.checkForUpdates": "local",
21-
"go.useLanguageServer": true,
22-
"go.gopath": "/go",
23-
"go.goroot": "/usr/local/go"
24-
},
25-
26-
// Add the IDs of extensions you want installed when the container is created.
27-
"extensions": [
28-
"golang.Go"
29-
],
30-
31-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
32-
// "forwardPorts": [],
33-
34-
// Use 'postCreateCommand' to run commands after the container is created.
35-
// "postCreateCommand": "go version",
36-
37-
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
38-
"remoteUser": "vscode"
4+
"name": "Go",
5+
"build": {
6+
"dockerfile": "Dockerfile",
7+
"args": {
8+
// Update the VARIANT arg to pick a version of Go: 1, 1.16, 1.17
9+
// Append -bullseye or -buster to pin to an OS version.
10+
// Use -bullseye variants on local arm64/Apple Silicon.
11+
"VARIANT": "1-bullseye",
12+
// Options
13+
"NODE_VERSION": "lts/*"
14+
}
15+
},
16+
"runArgs": [
17+
"--init",
18+
"--cap-add=SYS_PTRACE",
19+
"--security-opt",
20+
"seccomp=unconfined"
21+
],
22+
// Set *default* container specific settings.json values on container create.
23+
"settings": {
24+
"go.toolsManagement.checkForUpdates": "local",
25+
"go.useLanguageServer": true,
26+
"go.gopath": "/go",
27+
"go.goroot": "/usr/local/go",
28+
"lithia.path": ["go", "run", "./app/lithia"]
29+
},
30+
// Add the IDs of extensions you want installed when the container is created.
31+
"extensions": ["golang.Go", "vknabel.vscode-lithia"],
32+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
33+
// "forwardPorts": [],
34+
// Use 'postCreateCommand' to run commands after the container is created.
35+
// "postCreateCommand": "go version",
36+
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
37+
"remoteUser": "vscode"
3938
}

.vscode/settings.json

-3
This file was deleted.

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Currently Lithia is an early proof of concept. Basic language features exist, bu
2929
- [ ] ... with auto completion _proof of concept_
3030
- [ ] ... with highlights
3131
- [ ] ... with refactorings
32+
- [ ] ... with formatter
3233
- [ ] A package manager
3334
- [ ] Custom plugins for external declarations
3435
- [ ] More static type safety

0 commit comments

Comments
 (0)