Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
nonoroazoro committed Feb 14, 2019
2 parents 38752e9 + 781f64d commit 9870e3a
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 14 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelogs

## 2.1.3 - February 14, 2019

- Changed: Synchronize with the latest `octokit` api.

- Changed: Upgrade the VSCode web api to version `5.1-preview.1`.


## 2.1.2 - February 13, 2019

- Changed: Increase the download speed and accelerate the process of adding and installing VSCode extensions.
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Syncing

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

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

Expand Down
7 changes: 4 additions & 3 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Syncing

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

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

Expand All @@ -17,7 +18,7 @@

****2.1.2*** 版本开始:

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

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

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "syncing",
"displayName": "%displayName%",
"description": "%description%",
"version": "2.1.2",
"version": "2.1.3",
"publisher": "nonoroazoro",
"author": {
"email": "[email protected]",
Expand All @@ -29,8 +29,9 @@
],
"keywords": [
"sync",
"sync-settings",
"syncing",
"sync-settings",
"settings-sync",
"vscode-sync",
"vscode-syncing"
],
Expand Down
11 changes: 6 additions & 5 deletions src/core/Gist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,19 @@ export class Gist
{
this._proxy = proxy;

const options: Record<string, any> = { timeout: 8000 };
const options: Record<string, any> = { request: { timeout: 8000 } };
if (proxy)
{
options["agent"] = new HttpsProxyAgent(proxy);
options.request["agent"] = new HttpsProxyAgent(proxy);
}
this._api = new Github(options);

this._token = token;
if (token)
if (token != null)
{
this._api.authenticate({ token, type: "oauth" });
options["auth"] = `token ${token}`;
}

this._api = new Github(options);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/utils/vscodeAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function getExtensionById(id: string, ignoreCase = true)
}

/**
* Gets the `editor.formatOnSave` setting from `VSCode User Settings`.
* Gets the setting from `VSCode User Settings`.
*/
export function getVSCodeSetting<T>(section: string, key: string, defaultValue?: T): T
{
Expand Down
2 changes: 1 addition & 1 deletion src/utils/vscodeWebAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function queryExtensions(ids: string[], proxy?: string): Promise<Ca
if (ids.length > 0)
{
const api = "https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery";
const headers = { Accept: "application/json;api-version=3.0-preview.1" };
const headers = { Accept: "application/json;api-version=5.1-preview.1" };
const data = {
filters: [
{
Expand Down

0 comments on commit 9870e3a

Please sign in to comment.