Skip to content

Commit c1910e0

Browse files
committed
release 3.0.0
2 parents 5146ad3 + 50bd86e commit c1910e0

Some content is hidden

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

51 files changed

+2546
-1421
lines changed

.eslintrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": [
3+
"eslint-config-zoro/eslint",
4+
"eslint-config-zoro/typescript"
5+
],
6+
"env": {
7+
"jest": true
8+
},
9+
"parserOptions": {
10+
"project": "./tsconfig.json"
11+
}
12+
}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Node files
22
node_modules
3-
package-lock.json
43

54
# OS junk files
65
.DS_Store
76

87
# Project specific stuff
8+
.cache-loader
99
dist

.lintstagedrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"{src,tests}/**/*.{js,ts,tsx}": [
3+
"eslint",
4+
"git add"
5+
]
6+
}

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"recommendations": [
3-
"ms-vscode.vscode-typescript-tslint-plugin"
3+
"dbaeumer.vscode-eslint"
44
],
55
"unwantedRecommendations": []
66
}

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"smartStep": true,
1919
"sourceMaps": true,
2020
"osx": {
21-
// "preLaunchTask": "tsc-watch"
21+
"preLaunchTask": "tsc-watch"
2222
},
2323
}
2424
]

.vscode/settings.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
{
2+
"eslint.validate": [
3+
"javascript",
4+
"javascriptreact",
5+
{
6+
"language": "typescript",
7+
"autoFix": true
8+
},
9+
{
10+
"language": "typescriptreact",
11+
"autoFix": true
12+
}
13+
],
14+
"files.exclude": {
15+
"**/.cache-loader": true
16+
},
217
"search.exclude": {
318
"**/dist": true,
419
"**/yarn.lock": true

.vscodeignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ tslint.json
1515
webpack.config.prod.js
1616

1717
# Project specific stuff
18+
__tests__/**
1819
.github/**
1920
docs/**
2021
src/**

CHANGELOG.md

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

3+
## 3.0.0 - May 10, 2019
4+
5+
- Added: Add support for settings **auto-sync**.
6+
7+
38
## 2.1.6 - April 04, 2019
49

510
- Changed: Remove unused files to reduce the extension size and improve the performance.
@@ -9,7 +14,7 @@
914

1015
- Added: Handle error during initialization.
1116

12-
- Added: Added Anti 996 license.
17+
- Added: Add Anti 996 license.
1318

1419
- Changed: Tweak localizations.
1520

@@ -58,19 +63,19 @@
5863

5964
## 2.0.6 - November 29, 2018
6065

61-
- Fixed: Fixed the [issue](https://github.com/octokit/rest.js/issues/1144) introduced by `deepmerge`.
66+
- Fixed: Fix the [issue](https://github.com/octokit/rest.js/issues/1144) introduced by `deepmerge`.
6267

6368

6469
## 2.0.5 - November 29, 2018
6570

66-
- Changed: Replaced `moment` with `date-fns` which can significantly reduce the extension's size.
71+
- Changed: Replace `moment` with `date-fns` which can significantly reduce the extension's size.
6772

68-
- Fixed: Fixed the [event-stream security issue](https://code.visualstudio.com/blogs/2018/11/26/event-stream).
73+
- Fixed: Fix the [event-stream security issue](https://code.visualstudio.com/blogs/2018/11/26/event-stream).
6974

7075

7176
## 2.0.2 - November 13, 2018
7277

73-
- Fixed: Fixed an error while parsing VSCode settings.
78+
- Fixed: Fix an error while parsing VSCode settings.
7479

7580

7681
## 2.0.1 - November 01, 2018

README.md

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,23 @@
1818

1919
## Breaking Changes
2020

21-
* From ***version 2.1.2*** onwards:
21+
* From ***version 3.0.0*** onwards:
2222

23-
1. Increase the download speed and accelerate the process of adding and installing VSCode extensions.
23+
1. Supports **auto-sync** (finally...), here's a brief guide:
2424

25-
1. Add support for different editions of VSCode binaries as the followings:
25+
1. ***Disclaimer***, by enabling auto-sync, you may **unintentionally overwrite** your settings ([see the discussion here](https://github.com/nonoroazoro/vscode-syncing/issues/6)), make sure you know what you're doing before you continue!
2626

27-
1. [VSCode Standard Builds](https://code.visualstudio.com/).
27+
1. It's **highly recommended** that you perform a `Download Settings` (which will set a baseline) before the following steps.
2828

29-
1. [VSCode Insiders Builds](https://code.visualstudio.com/insiders/).
29+
1. `Open Syncing Settings` ([Don't known how to open?](#auto-sync-settings)) and enable the **auto-sync** like the followings:
3030

31-
1. [VSCode Exploration Builds](https://github.com/Microsoft/vscode/issues/61787).
31+
```json
32+
"auto_sync": true
33+
```
3234

33-
1. VSCode builds under FLOSS license, see [VSCodium](https://github.com/VSCodium/vscodium).
35+
1. Reload or reopen your VSCode and enjoy!
3436

35-
1. Self-compiled VSCode under [the default configuration](https://github.com/Microsoft/vscode/blob/master/product.json) (Thank [@Backfighter](https://github.com/Backfighter) for the PR).
36-
37-
> Don't worry, Syncing will automatically identify the VSCode edition for you.
37+
> BTW, don't forget to fill in the correct `Github Personal Access Token` and `Gist ID`, otherwise auto-sync will not work.
3838

3939

4040
## Features
@@ -188,6 +188,21 @@ Moreover, if the `"http_proxy"` is unset, `Syncing` will try to read the `http_p
188188
> Please note that unlike the settings in [VSCode User Settings](#vscode-user-settings), `Syncing` **will not upload** its own settings file because it contains your personal information.
189189

190190

191+
## Auto-sync Settings
192+
193+
You can now let Syncing auto-sync your settings. Here are the steps:
194+
195+
1. Type `"Syncing: Open Syncing Settings"` (or just `"opensync"`) in `VSCode Command Palette` to open `Syncing`'s own settings file (i.e. `syncing.json`).
196+
197+
1. Enable the `"auto_sync"` setting, for example:
198+
199+
```json
200+
"auto_sync": "auto"
201+
```
202+
203+
1. Reload or reopen VSCode to take effect.
204+
205+
191206
## Getting Started
192207

193208
1. Get your own `GitHub Personal Access Token` (3 steps).

README.zh-CN.md

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,23 @@
1818

1919
## 重要变更
2020

21-
****2.1.2*** 版本开始:
21+
****3.0.0*** 版本开始:
2222

23-
1. 显著加快 VSCode 插件的下载和安装速度,尤其是中国用户在无代理情况下的下载和安装速度;
23+
1. 支持**配置自动同步**(终于...),以下是简单步骤:
2424

25-
1. 增加对各种 VSCode 版本的支持,包括:
25+
1. ***免责声明***:启用自动同步后,在某些情况下可能会导致您错误地覆盖配置文件([参考这里的讨论](https://github.com/nonoroazoro/vscode-syncing/issues/6)),因此在继续之前,请务必确认您是否真的需要启用该功能;
2626

27-
1. [VSCode 标准版本](https://code.visualstudio.com/)
27+
1. 在后续操作之前,**强烈推荐**您执行一次`下载配置`以便让自动同步功能更好地工作
2828

29-
1. [VSCode Insiders 版本](https://code.visualstudio.com/insiders/)
29+
1. 打开 `Syncing` 的配置文件([不知道如何打开?](#配置自动同步))并启用 **auto-sync**,例如:
3030

31-
1. [VSCode Exploration 版本](https://github.com/Microsoft/vscode/issues/61787)
31+
```json
32+
"auto_sync": true
33+
```
3234

33-
1. [VSCodium](https://github.com/VSCodium/vscodium),这是 [FLOSS License](https://www.gnu.org/philosophy/floss-and-foss.en.html) 下的一个 VSCode 版本;
35+
1. 重新加载或重启 VSCode,大功告成!
3436

35-
1. 按照[默认配置](https://github.com/Microsoft/vscode/blob/master/product.json)自行编译的 VSCode 版本 (感谢 [@Backfighter](https://github.com/Backfighter) 的 PR)。
36-
37-
> 无须担心,升级之后 Syncing 会自动帮您检测 VSCode 版本。
37+
> 最后,别忘了设置您的 `Github Personal Access Token` 和 `Gist ID`,否则自动同步功能将不会工作。
3838

3939

4040
## 功能
@@ -188,6 +188,21 @@
188188
> 注意:不同于那些保存在 [VSCode 用户设置](#vscode-配置项)中的 `Syncing` 配置项,这个独立的配置文件并**不会被同步**,因为里面保存了您的私人信息。
189189

190190

191+
## 配置自动同步
192+
193+
Syncing 现在支持配置自动同步了,具体步骤如下:
194+
195+
1. 在 `VSCode 的命令面板`中输入 `Syncing: Open Syncing Settings`(或者 `opensync`)来打开 `Syncing` 自己的配置文件(即 `syncing.json` 文件);
196+
197+
1. 启用 `"auto_sync"` 配置,例如:
198+
199+
```json
200+
"auto_sync": "auto"
201+
```
202+
203+
1. 重新加载或重启 VSCode。
204+
205+
191206
## 快速开始
192207

193208
1. 创建您自己的 `GitHub Personal Access Token`(总共 3 步):

0 commit comments

Comments
 (0)