Skip to content

Commit 9870e3a

Browse files
committed
Merge branch 'develop'
2 parents 38752e9 + 781f64d commit 9870e3a

File tree

7 files changed

+25
-14
lines changed

7 files changed

+25
-14
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelogs
22

3+
## 2.1.3 - February 14, 2019
4+
5+
- Changed: Synchronize with the latest `octokit` api.
6+
7+
- Changed: Upgrade the VSCode web api to version `5.1-preview.1`.
8+
9+
310
## 2.1.2 - February 13, 2019
411

512
- Changed: Increase the download speed and accelerate the process of adding and installing VSCode extensions.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Syncing
22

3-
[![Version](https://vsmarketplacebadge.apphb.com/version/nonoroazoro.syncing.svg)](https://marketplace.visualstudio.com/items?itemName=nonoroazoro.syncing)
3+
[![Version](https://vsmarketplacebadge.apphb.com/version-short/nonoroazoro.syncing.svg)](https://marketplace.visualstudio.com/items?itemName=nonoroazoro.syncing)
44
[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/nonoroazoro.syncing.svg)](https://marketplace.visualstudio.com/items?itemName=nonoroazoro.syncing)
5-
[![Ratings](https://vsmarketplacebadge.apphb.com/rating/nonoroazoro.syncing.svg)](https://marketplace.visualstudio.com/items?itemName=nonoroazoro.syncing#review-details)
5+
[![Downloads](https://vsmarketplacebadge.apphb.com/downloads-short/nonoroazoro.syncing.svg)](https://marketplace.visualstudio.com/items?itemName=nonoroazoro.syncing)
6+
[![Ratings](https://vsmarketplacebadge.apphb.com/rating-star/nonoroazoro.syncing.svg)](https://marketplace.visualstudio.com/items?itemName=nonoroazoro.syncing#review-details)
67

78
[English](README.md) | [中文](README.zh-CN.md)
89

README.zh-CN.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Syncing
22

3-
[![Version](https://vsmarketplacebadge.apphb.com/version/nonoroazoro.syncing.svg)](https://marketplace.visualstudio.com/items?itemName=nonoroazoro.syncing)
3+
[![Version](https://vsmarketplacebadge.apphb.com/version-short/nonoroazoro.syncing.svg)](https://marketplace.visualstudio.com/items?itemName=nonoroazoro.syncing)
44
[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/nonoroazoro.syncing.svg)](https://marketplace.visualstudio.com/items?itemName=nonoroazoro.syncing)
5-
[![Ratings](https://vsmarketplacebadge.apphb.com/rating/nonoroazoro.syncing.svg)](https://marketplace.visualstudio.com/items?itemName=nonoroazoro.syncing#review-details)
5+
[![Downloads](https://vsmarketplacebadge.apphb.com/downloads-short/nonoroazoro.syncing.svg)](https://marketplace.visualstudio.com/items?itemName=nonoroazoro.syncing)
6+
[![Ratings](https://vsmarketplacebadge.apphb.com/rating-star/nonoroazoro.syncing.svg)](https://marketplace.visualstudio.com/items?itemName=nonoroazoro.syncing#review-details)
67

78
[English](README.md) | [中文](README.zh-CN.md)
89

@@ -17,7 +18,7 @@
1718

1819
****2.1.2*** 版本开始:
1920

20-
1. 显著加快 VSCode 插件的下载和安装速度;
21+
1. 显著加快 VSCode 插件的下载和安装速度,尤其是中国用户在无代理情况下的下载和安装速度
2122

2223
1. 增加对各种 VSCode 版本的支持,包括:
2324

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "syncing",
33
"displayName": "%displayName%",
44
"description": "%description%",
5-
"version": "2.1.2",
5+
"version": "2.1.3",
66
"publisher": "nonoroazoro",
77
"author": {
88
"email": "xiaochao.k@gmail.com",
@@ -29,8 +29,9 @@
2929
],
3030
"keywords": [
3131
"sync",
32-
"sync-settings",
3332
"syncing",
33+
"sync-settings",
34+
"settings-sync",
3435
"vscode-sync",
3536
"vscode-syncing"
3637
],

src/core/Gist.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,19 @@ export class Gist
3131
{
3232
this._proxy = proxy;
3333

34-
const options: Record<string, any> = { timeout: 8000 };
34+
const options: Record<string, any> = { request: { timeout: 8000 } };
3535
if (proxy)
3636
{
37-
options["agent"] = new HttpsProxyAgent(proxy);
37+
options.request["agent"] = new HttpsProxyAgent(proxy);
3838
}
39-
this._api = new Github(options);
4039

4140
this._token = token;
42-
if (token)
41+
if (token != null)
4342
{
44-
this._api.authenticate({ token, type: "oauth" });
43+
options["auth"] = `token ${token}`;
4544
}
45+
46+
this._api = new Github(options);
4647
}
4748

4849
/**

src/utils/vscodeAPI.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function getExtensionById(id: string, ignoreCase = true)
2121
}
2222

2323
/**
24-
* Gets the `editor.formatOnSave` setting from `VSCode User Settings`.
24+
* Gets the setting from `VSCode User Settings`.
2525
*/
2626
export function getVSCodeSetting<T>(section: string, key: string, defaultValue?: T): T
2727
{

src/utils/vscodeWebAPI.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export async function queryExtensions(ids: string[], proxy?: string): Promise<Ca
2121
if (ids.length > 0)
2222
{
2323
const api = "https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery";
24-
const headers = { Accept: "application/json;api-version=3.0-preview.1" };
24+
const headers = { Accept: "application/json;api-version=5.1-preview.1" };
2525
const data = {
2626
filters: [
2727
{

0 commit comments

Comments
 (0)