Skip to content

Commit 2fab171

Browse files
committed
Update the ruby extension to use Ruby LSP
1 parent 2650778 commit 2fab171

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

.devcontainer/devcontainer.json

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"name": "Ruby",
55
"build": {
66
"dockerfile": "Dockerfile",
7-
"args": {
7+
"args": {
88
// Update 'VARIANT' to pick a Ruby version: 3, 3.0, 2, 2.7, 2.6
99
// Append -bullseye or -buster to pin to an OS version.
1010
// Use -bullseye variants on local on arm64/Apple Silicon.
@@ -14,14 +14,15 @@
1414
}
1515
},
1616

17-
// Set *default* container specific settings.json values on container create.
18-
"settings": {},
19-
20-
// Add the IDs of extensions you want installed when the container is created.
21-
"extensions": [
22-
"rebornix.Ruby"
23-
],
24-
17+
// Configure tool-specific properties.
18+
"customizations": {
19+
"vscode": {
20+
// Add the IDs of extensions you want installed when the container is created.
21+
"extensions": [
22+
"Shopify.ruby-lsp"
23+
]
24+
}
25+
},
2526
// Use 'forwardPorts' to make a list of ports inside the container available locally.
2627
// "forwardPorts": [],
2728

@@ -30,8 +31,10 @@
3031

3132
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
3233
"remoteUser": "vscode",
34+
// Features to add to the dev container. More info: https://containers.dev/features.
3335
"features": {
34-
"github-cli": "latest"
36+
"ghcr.io/devcontainers/features/github-cli:1": {
37+
"version": "latest"
38+
}
3539
}
36-
37-
}
40+
}

0 commit comments

Comments
 (0)