Skip to content

Commit a1513ef

Browse files
authored
Format vscode extention and LSP files consistently (#748)
* Add Zed format settings * Reformat vscode extension and LSP * Fix JSON diagnostics in launch.json
1 parent bea15fd commit a1513ef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+4646
-4645
lines changed

.vscode/launch.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
{
66
"version": "0.2.0",
77
"configurations": [
8-
98
{
109
"name": "Run VS Code Extension",
1110
"type": "extensionHost",
@@ -24,6 +23,6 @@
2423
"port": 6009,
2524
"restart": true,
2625
"outFiles": ["${workspaceRoot}/out/**/*.js"]
27-
},
26+
}
2827
]
2928
}

.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"editor.formatOnSave": true
55
},
66
"typescript.tsdk": "node_modules/typescript/lib",
7+
"editor.detectIndentation": false,
78
"editor.tabSize": 2,
9+
"editor.insertSpaces": true,
810
"files.insertFinalNewline": true,
911
"files.trimFinalNewlines": true,
1012
"files.trimTrailingWhitespace": true

.zed/settings.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"languages": {
3+
"TypeScript": {
4+
"tab_size": 2,
5+
"hard_tabs": false,
6+
"ensure_final_newline_on_save": true,
7+
"remove_trailing_whitespace_on_save": true,
8+
"format_on_save": "on",
9+
"formatter": "language_server"
10+
}
11+
}
12+
}

0 commit comments

Comments
 (0)