-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathdevcontainer.json
More file actions
38 lines (38 loc) · 1.35 KB
/
devcontainer.json
File metadata and controls
38 lines (38 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"name": "Copilot Token Tracker Extension",
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
"features": {
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/powershell:1": {}
},
"customizations": {
"vscode": {
"extensions": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"ms-vscode.extension-test-runner",
"amodio.tsc-problem-matcher",
"github.copilot",
"github.copilot-chat"
],
"settings": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.enable": true,
"typescript.tsdk": "node_modules/typescript/lib",
"chat.tools.autoApprove": true
}
}
},
"initializeCommand": "powershell -ExecutionPolicy Bypass -File .devcontainer/init-mounts.ps1",
"mounts": [
"source=${localEnv:APPDATA}/Code/User,target=/home/node/.config/Code/User,type=bind,readonly=true",
"source=${localEnv:APPDATA}/Code - Insiders/User,target=/home/node/.config/Code - Insiders/User,type=bind,readonly=true",
"source=github-copilot-token-usage-nodemodules,target=/workspaces/github-copilot-token-usage/node_modules,type=volume"
],
"containerEnv": {
"NODE_OPTIONS": "--max-old-space-size=4096"
},
"postCreateCommand": "npm ci",
"remoteUser": "node"
}