Seti uses TS-icon for jsonc-language. Fixes #78261

This commit is contained in:
Martin Aeschlimann
2019-08-16 18:08:16 +02:00
parent 265dba5598
commit ae42e42cf1
3 changed files with 13 additions and 5 deletions

View File

@@ -32,7 +32,8 @@ let nonBuiltInLanguages = { // { fileNames, extensions }
"haml": { extensions: ['haml'] },
"stylus": { extensions: ['styl'] },
"vala": { extensions: ['vala'] },
"todo": { fileNames: ['todo'] }
"todo": { fileNames: ['todo'] },
"jsonc": { extensions: ['json'] }
};
let FROM_DISK = true; // set to true to take content from a repo checked out next to the vscode repo
@@ -109,7 +110,7 @@ function downloadBinary(source, dest) {
return new Promise((c, e) => {
https.get(source, function (response) {
switch (response.statusCode) {
case 200:
case 200: {
let file = fs.createWriteStream(dest);
response.on('data', function (chunk) {
file.write(chunk);
@@ -121,6 +122,7 @@ function downloadBinary(source, dest) {
e(err.message);
});
break;
}
case 301:
case 302:
case 303: