Skip to content

Commit 93cce88

Browse files
format JSON files in the .vscode directory (#1228)
1 parent 7bb4a76 commit 93cce88

File tree

5 files changed

+80
-90
lines changed

5 files changed

+80
-90
lines changed

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
!*.json
55
!*.ts
66

7+
# Directories ignored by default that actually should be formatted
8+
!.vscode/
9+
710
# NodeJS
811
node_modules/
912

.vscode/extensions.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
2-
// See http://go.microsoft.com/fwlink/?LinkId=827846
3-
// for the documentation about the extensions.json format
4-
"recommendations": [
5-
"dbaeumer.vscode-eslint",
6-
"esbenp.prettier-vscode"
7-
]
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
4+
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
85
}

.vscode/launch.json

Lines changed: 37 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -3,51 +3,41 @@
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
{
6-
"version": "0.2.0",
7-
"configurations": [
8-
{
9-
"name": "Run Extension",
10-
"type": "extensionHost",
11-
"request": "launch",
12-
"args": [
13-
"--extensionDevelopmentPath=${workspaceFolder}"
14-
],
15-
"env": {
16-
"VSCODE_DEBUG": "1"
17-
},
18-
"outFiles": [
19-
"${workspaceFolder}/dist/**/*.js"
20-
],
21-
"preLaunchTask": "build"
22-
},
23-
{
24-
"name": "Extension Tests",
25-
"type": "extensionHost",
26-
"request": "launch",
27-
"testConfiguration": "${workspaceFolder}/.vscode-test.js",
28-
"testConfigurationLabel": "integrationTests",
29-
"args": [
30-
"--profile=testing-debug"
31-
],
32-
"outFiles": [
33-
"${workspaceFolder}/dist/**/*.js"
34-
],
35-
"env": {
36-
"VSCODE_DEBUG": "1",
37-
"VSCODE_TEST": "1"
38-
},
39-
"preLaunchTask": "compile-tests"
40-
},
41-
{
42-
"name": "Unit Tests",
43-
"type": "extensionHost",
44-
"request": "launch",
45-
"testConfiguration": "${workspaceFolder}/.vscode-test.js",
46-
"testConfigurationLabel": "unitTests",
47-
"outFiles": [
48-
"${workspaceFolder}/dist/**/*.js"
49-
],
50-
"preLaunchTask": "compile-tests"
51-
}
52-
]
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Run Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
13+
"env": {
14+
"VSCODE_DEBUG": "1"
15+
},
16+
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
17+
"preLaunchTask": "build"
18+
},
19+
{
20+
"name": "Extension Tests",
21+
"type": "extensionHost",
22+
"request": "launch",
23+
"testConfiguration": "${workspaceFolder}/.vscode-test.js",
24+
"testConfigurationLabel": "integrationTests",
25+
"args": ["--profile=testing-debug"],
26+
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
27+
"env": {
28+
"VSCODE_DEBUG": "1",
29+
"VSCODE_TEST": "1"
30+
},
31+
"preLaunchTask": "compile-tests"
32+
},
33+
{
34+
"name": "Unit Tests",
35+
"type": "extensionHost",
36+
"request": "launch",
37+
"testConfiguration": "${workspaceFolder}/.vscode-test.js",
38+
"testConfigurationLabel": "unitTests",
39+
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
40+
"preLaunchTask": "compile-tests"
41+
}
42+
]
5343
}

.vscode/settings.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
// Place your settings in this file to overwrite default and user settings.
22
{
3-
"files.exclude": {
4-
"dist": false // set this to true to hide the "dist" folder with the compiled JS files
5-
},
6-
"search.exclude": {
7-
"dist": true // set this to false to include "dist" folder in search results
8-
},
9-
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10-
"typescript.tsc.autoDetect": "off",
3+
"files.exclude": {
4+
"dist": false // set this to true to hide the "dist" folder with the compiled JS files
5+
},
6+
"search.exclude": {
7+
"dist": true // set this to false to include "dist" folder in search results
8+
},
9+
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10+
"typescript.tsc.autoDetect": "off",
1111

12-
// Configure Prettier
13-
"editor.formatOnSave": true,
14-
"editor.defaultFormatter": "esbenp.prettier-vscode",
12+
// Configure Prettier
13+
"editor.formatOnSave": true,
14+
"editor.defaultFormatter": "esbenp.prettier-vscode"
1515
}

.vscode/tasks.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
// See https://go.microsoft.com/fwlink/?LinkId=733558
22
// for the documentation about the tasks.json format
33
{
4-
"version": "2.0.0",
5-
"tasks": [
6-
{
7-
"label": "build",
8-
"type": "npm",
9-
"script": "watch",
10-
"problemMatcher": "$tsc-watch",
11-
"presentation": {
12-
"reveal": "never"
13-
},
14-
"isBackground": true,
15-
"group": {
16-
"kind": "build",
17-
"isDefault": true
18-
}
19-
},
20-
{
21-
"label": "compile-tests",
22-
"type": "npm",
23-
"script": "compile-tests",
24-
"problemMatcher": "$tsc",
25-
"presentation": {
26-
"reveal": "never"
27-
}
28-
}
29-
]
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "build",
8+
"type": "npm",
9+
"script": "watch",
10+
"problemMatcher": "$tsc-watch",
11+
"presentation": {
12+
"reveal": "never"
13+
},
14+
"isBackground": true,
15+
"group": {
16+
"kind": "build",
17+
"isDefault": true
18+
}
19+
},
20+
{
21+
"label": "compile-tests",
22+
"type": "npm",
23+
"script": "compile-tests",
24+
"problemMatcher": "$tsc",
25+
"presentation": {
26+
"reveal": "never"
27+
}
28+
}
29+
]
3030
}

0 commit comments

Comments
 (0)