Skip to content

Commit c04ce75

Browse files
committed
Leverage configurationDefaults for languages that we bundle with VS Code. Fixes microsoft#21301
1 parent 95f8b3c commit c04ce75

3 files changed

Lines changed: 19 additions & 3 deletions

File tree

extensions/go/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
"language": "go",
1818
"scopeName": "source.go",
1919
"path": "./syntaxes/go.json"
20-
}]
20+
}],
21+
"configurationDefaults": {
22+
"[go]": {
23+
"editor.insertSpaces": false
24+
}
25+
}
2126
}
2227
}

extensions/make/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
"language": "makefile",
2020
"scopeName": "source.makefile",
2121
"path": "./syntaxes/Makefile.json"
22-
}]
22+
}],
23+
"configurationDefaults": {
24+
"[makefile]": {
25+
"editor.insertSpaces": false
26+
}
27+
}
2328
}
2429
}

extensions/yaml/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
"language": "yaml",
1919
"scopeName": "source.yaml",
2020
"path": "./syntaxes/yaml.json"
21-
}]
21+
}],
22+
"configurationDefaults": {
23+
"[yaml]": {
24+
"editor.insertSpaces": true,
25+
"editor.tabSize": 2
26+
}
27+
}
2228
}
2329
}

0 commit comments

Comments
 (0)