Skip to content

Commit 9267ac9

Browse files
authored
Use spaces instead of tabs (#2889)
* Specify indent size in EditorConfig * Use 4 space tabs for *.ts files * Use 2 space tabs for data files * revert vscode.proposed.d.ts
1 parent 312d8d5 commit 9267ac9

File tree

9 files changed

+409
-388
lines changed

9 files changed

+409
-388
lines changed

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,9 @@ root = true
22

33
[*]
44
charset = utf-8
5+
indent_style = space
6+
indent_size = 4
57
insert_final_newline = true
8+
9+
[*.{json,yaml,yml}]
10+
indent_size = 2

.poshchan/settings.json

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
11
{
2-
"version": "0.1",
3-
"azdevops": {
4-
"build_targets": {
5-
"ci": "vscode-powershell-ci"
6-
},
7-
"authorized_users": [
8-
"adityapatwardhan",
9-
"anmenaga",
10-
"bergmeister",
11-
"daxian-dbw",
12-
"JamesWTruher",
13-
"PaulHigin",
14-
"rjmholt",
15-
"rkeithhill",
16-
"SeeminglyScience",
17-
"SteveL-MSFT",
18-
"TravisEz13",
19-
"TylerLeonhardt"
20-
]
2+
"version": "0.1",
3+
"azdevops": {
4+
"build_targets": {
5+
"ci": "vscode-powershell-ci"
216
},
22-
"failures": {
23-
"authorized_users": [
24-
"adityapatwardhan",
25-
"anmenaga",
26-
"bergmeister",
27-
"daxian-dbw",
28-
"glennsarti",
29-
"JamesWTruher",
30-
"PaulHigin",
31-
"rjmholt",
32-
"rkeithhill",
33-
"SeeminglyScience",
34-
"SteveL-MSFT",
35-
"TravisEz13",
36-
"TylerLeonhardt"
37-
]
38-
},
39-
"reminders": {
40-
"authorized_users": "*"
41-
}
42-
}
7+
"authorized_users": [
8+
"adityapatwardhan",
9+
"anmenaga",
10+
"bergmeister",
11+
"daxian-dbw",
12+
"JamesWTruher",
13+
"PaulHigin",
14+
"rjmholt",
15+
"rkeithhill",
16+
"SeeminglyScience",
17+
"SteveL-MSFT",
18+
"TravisEz13",
19+
"TylerLeonhardt"
20+
]
21+
},
22+
"failures": {
23+
"authorized_users": [
24+
"adityapatwardhan",
25+
"anmenaga",
26+
"bergmeister",
27+
"daxian-dbw",
28+
"glennsarti",
29+
"JamesWTruher",
30+
"PaulHigin",
31+
"rjmholt",
32+
"rkeithhill",
33+
"SeeminglyScience",
34+
"SteveL-MSFT",
35+
"TravisEz13",
36+
"TylerLeonhardt"
37+
]
38+
},
39+
"reminders": {
40+
"authorized_users": "*"
41+
}
42+
}

.vscode/launch.json

Lines changed: 51 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,53 @@
11
{
2-
"version": "0.1.0",
3-
"configurations": [
4-
{
5-
"name": "Launch Extension",
6-
"type": "extensionHost",
7-
"request": "launch",
8-
"runtimeExecutable": "${execPath}",
9-
"args": [ "--extensionDevelopmentPath=${workspaceRoot}" ],
10-
"stopOnEntry": false,
11-
"sourceMaps": true,
12-
"outFiles": ["${workspaceFolder}/out/src/**/*.js"],
13-
"preLaunchTask": "BuildAll"
14-
},
15-
{
16-
"name": "Launch Extension (Build client only)",
17-
"type": "extensionHost",
18-
"request": "launch",
19-
"runtimeExecutable": "${execPath}",
20-
"args": [ "--extensionDevelopmentPath=${workspaceFolder}" ],
21-
"stopOnEntry": false,
22-
"sourceMaps": true,
23-
"outFiles": ["${workspaceFolder}/out/src/**/*.js"],
24-
"preLaunchTask": "Build"
25-
},
26-
{
27-
"name": "Launch Extension Tests",
28-
"type": "extensionHost",
29-
"request": "launch",
30-
"runtimeExecutable": "${execPath}",
31-
"args": [
32-
"--disable-extensions",
33-
"--enable-proposed-api", "ms-vscode.powershell-preview",
34-
"--extensionDevelopmentPath=${workspaceFolder}",
35-
"--extensionTestsPath=${workspaceFolder}/out/test/testRunner.js",
36-
"${workspaceFolder}/test"
37-
],
38-
"outFiles": ["${workspaceFolder}/out/**/*.js"],
39-
"preLaunchTask": "Build"
40-
}
41-
]
2+
"version": "0.1.0",
3+
"configurations": [
4+
{
5+
"name": "Launch Extension",
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"runtimeExecutable": "${execPath}",
9+
"args": [
10+
"--extensionDevelopmentPath=${workspaceRoot}"
11+
],
12+
"stopOnEntry": false,
13+
"sourceMaps": true,
14+
"outFiles": [
15+
"${workspaceFolder}/out/src/**/*.js"
16+
],
17+
"preLaunchTask": "BuildAll"
18+
},
19+
{
20+
"name": "Launch Extension (Build client only)",
21+
"type": "extensionHost",
22+
"request": "launch",
23+
"runtimeExecutable": "${execPath}",
24+
"args": [
25+
"--extensionDevelopmentPath=${workspaceFolder}"
26+
],
27+
"stopOnEntry": false,
28+
"sourceMaps": true,
29+
"outFiles": [
30+
"${workspaceFolder}/out/src/**/*.js"
31+
],
32+
"preLaunchTask": "Build"
33+
},
34+
{
35+
"name": "Launch Extension Tests",
36+
"type": "extensionHost",
37+
"request": "launch",
38+
"runtimeExecutable": "${execPath}",
39+
"args": [
40+
"--disable-extensions",
41+
"--enable-proposed-api",
42+
"ms-vscode.powershell-preview",
43+
"--extensionDevelopmentPath=${workspaceFolder}",
44+
"--extensionTestsPath=${workspaceFolder}/out/test/testRunner.js",
45+
"${workspaceFolder}/test"
46+
],
47+
"outFiles": [
48+
"${workspaceFolder}/out/**/*.js"
49+
],
50+
"preLaunchTask": "Build"
51+
}
52+
]
4253
}

.vscode/settings.json

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
11
// Place your settings in this file to overwrite default and user settings.
22
{
3-
"editor.tabSize": 4,
4-
"editor.insertSpaces": true,
5-
"files.trimTrailingWhitespace": true,
6-
// Add a visual ruler for the typescript linting line length
7-
"editor.rulers": [120],
8-
9-
"files.associations": {
10-
// Use JSONC instead of JSON because (1) that's how VS Code interprets snippet files, and (2) it enables better source documentation.
11-
"**/snippets/*.json": "jsonc"
12-
},
13-
14-
"search.exclude": {
15-
"**/node_modules": true,
16-
"**/bower_components": true,
17-
"logs/": true,
18-
"out/": true
19-
},
20-
21-
// Lock the TypeScript SDK path to the version we use
22-
"typescript.tsdk": "./node_modules/typescript/lib",
23-
24-
// Ignore the MD rule:
25-
"markdownlint.config": {
26-
"MD024": false // no-duplicate-header
27-
}
3+
"editor.tabSize": 4,
4+
"editor.insertSpaces": true,
5+
"files.trimTrailingWhitespace": true,
6+
// Add a visual ruler for the typescript linting line length
7+
"editor.rulers": [
8+
120
9+
],
10+
"files.associations": {
11+
// Use JSONC instead of JSON because (1) that's how VS Code interprets snippet files, and (2) it enables better source documentation.
12+
"**/snippets/*.json": "jsonc"
13+
},
14+
"search.exclude": {
15+
"**/node_modules": true,
16+
"**/bower_components": true,
17+
"logs/": true,
18+
"out/": true
19+
},
20+
// Lock the TypeScript SDK path to the version we use
21+
"typescript.tsdk": "./node_modules/typescript/lib",
22+
// Ignore the MD rule:
23+
"markdownlint.config": {
24+
"MD024": false // no-duplicate-header
25+
}
2826
}

.vscode/tasks.json

Lines changed: 80 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,85 @@
11
{
2-
"version": "2.0.0",
3-
4-
"windows": {
5-
"options": {
6-
"shell": {
7-
"executable": "pwsh.exe",
8-
"args": [ "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command" ]
9-
}
10-
}
2+
"version": "2.0.0",
3+
"windows": {
4+
"options": {
5+
"shell": {
6+
"executable": "pwsh.exe",
7+
"args": [
8+
"-NoProfile",
9+
"-ExecutionPolicy",
10+
"Bypass",
11+
"-Command"
12+
]
13+
}
14+
}
15+
},
16+
"linux": {
17+
"options": {
18+
"shell": {
19+
"executable": "pwsh",
20+
"args": [
21+
"-NoProfile",
22+
"-Command"
23+
]
24+
}
25+
}
26+
},
27+
"osx": {
28+
"options": {
29+
"shell": {
30+
"executable": "/usr/local/bin/pwsh",
31+
"args": [
32+
"-NoProfile",
33+
"-Command"
34+
]
35+
}
36+
}
37+
},
38+
"tasks": [
39+
{
40+
"label": "Install",
41+
"type": "shell",
42+
"command": "Invoke-Build Restore",
43+
"problemMatcher": []
1144
},
12-
"linux": {
13-
"options": {
14-
"shell": {
15-
"executable": "pwsh",
16-
"args": [ "-NoProfile", "-Command" ]
17-
}
18-
}
45+
{
46+
"label": "CleanAll",
47+
"type": "shell",
48+
"command": "Invoke-Build CleanAll",
49+
"problemMatcher": []
1950
},
20-
"osx": {
21-
"options": {
22-
"shell": {
23-
"executable": "/usr/local/bin/pwsh",
24-
"args": [ "-NoProfile", "-Command" ]
25-
}
26-
}
51+
{
52+
"label": "Clean",
53+
"type": "shell",
54+
"command": "Invoke-Build Clean",
55+
"problemMatcher": []
2756
},
28-
29-
"tasks": [
30-
{
31-
"label": "Install",
32-
"type": "shell",
33-
"command": "Invoke-Build Restore",
34-
"problemMatcher": []
35-
},
36-
{
37-
"label": "CleanAll",
38-
"type": "shell",
39-
"command": "Invoke-Build CleanAll",
40-
"problemMatcher": []
41-
},
42-
{
43-
"label": "Clean",
44-
"type": "shell",
45-
"command": "Invoke-Build Clean",
46-
"problemMatcher": []
47-
},
48-
{
49-
"label": "BuildAll",
50-
"type": "shell",
51-
"command": "Invoke-Build BuildAll",
52-
"group": {
53-
"kind": "build",
54-
"isDefault": true
55-
},
56-
"problemMatcher": []
57-
},
58-
{
59-
"label": "Build",
60-
"type": "shell",
61-
"command": "Invoke-Build Build",
62-
"group": "build",
63-
"problemMatcher": []
64-
},
65-
{
66-
"label": "Test",
67-
"type": "shell",
68-
"command": "Invoke-Build Test",
69-
"group": {
70-
"kind": "test",
71-
"isDefault": true
72-
},
73-
"problemMatcher": []
74-
}
75-
]
57+
{
58+
"label": "BuildAll",
59+
"type": "shell",
60+
"command": "Invoke-Build BuildAll",
61+
"group": {
62+
"kind": "build",
63+
"isDefault": true
64+
},
65+
"problemMatcher": []
66+
},
67+
{
68+
"label": "Build",
69+
"type": "shell",
70+
"command": "Invoke-Build Build",
71+
"group": "build",
72+
"problemMatcher": []
73+
},
74+
{
75+
"label": "Test",
76+
"type": "shell",
77+
"command": "Invoke-Build Test",
78+
"group": {
79+
"kind": "test",
80+
"isDefault": true
81+
},
82+
"problemMatcher": []
83+
}
84+
]
7685
}

0 commit comments

Comments
 (0)