Skip to content

Commit a4fe4f6

Browse files
authored
Merge pull request #938 from shanalikhan/v3.4.0
V3.4.0
2 parents e434ea8 + 85e91bb commit a4fe4f6

Some content is hidden

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

58 files changed

+3705
-1641
lines changed

.vscode/tasks.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,14 @@
77
"label": "build",
88
"type": "shell",
99
"command": "npm",
10-
"args": [
11-
"run",
12-
"compile",
13-
"--loglevel",
14-
"silent"
15-
],
10+
"args": ["run", "compile", "--loglevel", "silent"],
1611
"problemMatcher": "$tsc-watch"
1712
},
1813
{
1914
"label": "test_build",
2015
"type": "shell",
2116
"command": "tsc",
22-
"args": [
23-
"-p",
24-
"./"
25-
]
17+
"args": ["-p", "./"]
2618
}
2719
]
28-
}
20+
}

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
[![Version](https://vsmarketplacebadge.apphb.com/version/Shan.code-settings-sync.svg)](https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync) [![Travis](https://img.shields.io/travis/rust-lang/rust.svg)](https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync) [![Master course](https://img.shields.io/badge/Supported%20by-VSCode%20Power%20User%20Course%20%E2%86%92-gray.svg?colorA=444444&colorB=4F44D6)](https://t.co/8BEMyhpKU5?amp=1)
44

5-
65
#### v3.4.0 - July 15, 2019
76

87
* Settings Sync now use Webviews to allow you to configure settings [#506](https://github.com/shanalikhan/code-settings-sync/issues/506) - Thanks for PR [#876](https://github.com/shanalikhan/code-settings-sync/pull/876) by [@arnohovhannisyan](https://github.com/arnohovhannisyan)

README.md

Lines changed: 68 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# Settings Sync [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Synchronize%20your%20%40VisualStudio%20%40code%20Settings%20Across%20Multiple%20Machines%20using%20%40github%20GIST%20by%20%40itsShanKhan&url=https://github.com/shanalikhan/code-settings-sync&via=code&hashtags=code,vscode,SettingsSync,developers) [![Follow](https://img.shields.io/twitter/follow/itsShanKhan.svg?style=social&label=Follow)](https://twitter.com/intent/follow?screen_name=itsShanKhan)
22

3-
4-
5-
63
**Previously known as Visual Studio Code Settings Sync**
74

85
[![Version](https://vsmarketplacebadge.apphb.com/version/Shan.code-settings-sync.svg)](https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync) [![Travis](https://img.shields.io/travis/rust-lang/rust.svg)](https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync)
@@ -11,7 +8,7 @@
118

129
## Support
1310

14-
While being free and open source, if you find it useful, please consider supporting it by donating via PayPal or Open Collective. If you are using it in office as a team, please ask your company to support us via Open Collective from just 2$ per month!
11+
While being free and open source, if you find it useful, please consider supporting it by donating via PayPal or Open Collective. If you are using it in office as a team, please ask your company to support us via Open Collective from just 2\$ per month!
1512

1613
<table align="center" width="60%" border="0">
1714
<tr>
@@ -42,7 +39,7 @@ While being free and open source, if you find it useful, please consider support
4239

4340
## Key Features
4441

45-
```
42+
```
4643
1. Use your GitHub account token and Gist.
4744
2. Easy to Upload and Download on one click.
4845
3. Show a summary page at the end with details about config and extensions effected.
@@ -51,10 +48,11 @@ While being free and open source, if you find it useful, please consider support
5148
6. Share the Gist with other users and let them download your settings.
5249
7. Supports GitHub Enterprise
5350
8. Support pragmas with @sync keywords: host, os and env are supported.
51+
9. GUI for changing settings / logging in
5452
```
5553

56-
5754
## It Syncs
55+
5856
```
5957
All extensions and complete User Folder that Contains
6058
1. Settings File
@@ -66,85 +64,63 @@ All extensions and complete User Folder that Contains
6664
```
6765

6866
## Shortcuts
67+
6968
```
7069
1. Upload Key : Shift + Alt + U
7170
2. Download Key : Shift + Alt + D
7271
```
7372

74-
## Steps To Get a Personal Access Token from GitHub
73+
## Configure Settings Sync
7574

76-
This extension requires a Personal Access Token from your GitHub account. You can create one by simply following the steps shown in the pictures below. Make sure you add **Gist** in scope.
75+
Settings Sync Configuration page will be opened automatically on code start and requires two things to setup:
7776

78-
**[Generate New Token](https://github.com/settings/tokens/new?description=code-setting-sync&scopes=gist)**
77+
1. Github Token
78+
2. Github GIST ID
7979

80-
![Select Scopes](https://shanalikhan.github.io/img/github2.PNG)
80+
Github Token needs to be retrived by your Github account while Settings Sync creates GIST if you are first time user.
8181

82-
**Get an Access Token.**
82+
Following are the steps you need to perform to configure.
8383

84-
![Get Access Token](https://shanalikhan.github.io/img/github3.PNG)
84+
- Click on `Login with Github` .
85+
- Login Github on Browser and close the browser tab once you get Success message.
86+
- If you are using Settings Sync first time GIST will be created automatically - Configuration Completed.
87+
- If you already have GIST, new window will be opened to allow you to select the GIST or `Skip` to create new GIST - Configurartion Completed.
8588

8689

87-
> Save the Token somewhere for future use (i.e. to upload from other machines).
90+
![Login with GitHub](https://shanalikhan.github.io/img/login-with-github.png)
8891

8992

90-
## Upload Your Settings For the first time
93+
![Existing Gist](https://shanalikhan.github.io/img/existing-gist.png)
9194

92-
**Press Shift + Alt + U it will ask your GitHub account access token.**
93-
94-
> Type ">Sync" In Command Palette into order download / upload
9595

96-
This will automatically open your GitHub settings page, allowing you to generate a new token for the application, as explained in the previous section. This token will allow the extension to create gists.
96+
You can always **verify created gist** by going to `https://gist.github.com` and checking for a gist named `cloudSettings`
9797

98-
Enter the GitHub token in the window and click enter.
9998

100-
![github account access token](https://shanalikhan.github.io/img/upload1.png)
99+
## Upload Your Settings
101100

102-
**Upload your settings automatically and the extension gives you Gist ID in the system message.**
103-
Gist ID is needed to access the data you have uploaded with your token. Copy this Gist ID in order to download the settings to other machines.
101+
**Press Shift + Alt + U**
104102

105-
![uploaded automatically](https://shanalikhan.github.io/img/upload2.png)
106-
107-
You can always **verify created gist** on the following url:
108-
109-
> https://gist.github.com/{your_userName}/{gist_id}
103+
> Type ">Sync" In Command Palette into order download / upload
110104
111-
Here is the gif of the complete process when you execute the Upload command (Might take some time to load)
105+
When downloading or uploading for the first time, the welcome page will automatically open, where you can configure the Settings Sync.
112106

113-
![Upload](https://media.giphy.com/media/xT9IglKxSqs2Wdwq2c/source.gif)
107+
Once you select upload, after uploading the settings. You will see the Summary details with the list of each files and extensions uploaded.
114108

115109
## Download your Settings
116110

117-
**Press Shift + Alt + D it will ask your GitHub Gist ID.**
111+
**Press Shift + Alt + D**
118112

119113
> Type ">Sync" In Command Palette into order download / upload
120114
121-
**Enter Your GitHub Token.**
122-
123-
Enter the GitHub token in the window and click enter.
124-
125-
![github account access token](https://shanalikhan.github.io/img/upload1.png)
126-
127-
**Enter Your Gist ID.**
128-
129-
You need to enter your Gist ID in order to download the files you have uploaded with Shift + Alt + U.
130-
131-
![Enter Your Gist ID](https://shanalikhan.github.io/img/download2.png)
115+
When downloading or uploading for the first time, the welcome page will automatically open, where you can configure the Settings Sync.
132116

133-
**Settings Downloaded.**
134-
You are Done! All your files are downloaded
135-
136-
![Enter Your Gist ID](https://shanalikhan.github.io/img/download3.png)
137-
138-
Here is the gif of the complete process when you execute the Download command (Might take time to load)
139-
140-
141-
![Download](https://media.giphy.com/media/xT9Iglsi3CS9noE8tW/source.gif)
117+
Once you select download, after downloading. Settings Sync will display you Summary containing the list of each files and extension being downloaded.
142118

119+
New popup will be opened to allow you to restart the code to apply the settings.
143120

144121
## Reset Extension Settings
145122

146-
> Type ">Sync" In Command Palette and select Reset Extension Settings
147-
123+
> Select **"> Sync : Reset Extension Settings"** in the Command Palette to reset your settings
148124
149125
## Toggle Auto Download
150126

@@ -161,6 +137,14 @@ Please make sure you have valid github Token and Gist available to make it work
161137

162138
Select Command **"Sync : Advanced Options > Toggle Force Download"** command to Turn ON / OFF the force download.
163139

140+
## Toggle Force Upload
141+
142+
Force Upload is **disabled by default**. By default, extension won't upload the settings if the gist has newer or identical content. By turning this ON it will always upload without checking for newer settings in the gist.
143+
144+
Please make sure you have valid github Token and Gist available to make it work properly.
145+
146+
Select Command **"Sync : Advanced Options > Toggle Force Upload"** command to Turn ON / OFF the force upload.
147+
164148
## Toggle Auto-Upload on change
165149

166150
Auto-upload is **disabled by default**. When the settings are changed and saved this feature will automatically start the upload process and save the settings online.
@@ -169,7 +153,6 @@ Please make sure you have valid github Token and Gist available to make it work
169153

170154
Select Command **"Sync : Advanced Options > Toggle Auto-Upload on Settings Change"** command to Turn ON / OFF the auto-upload.
171155

172-
173156
## Toggle Summary
174157

175158
Summary is **enabled by default** which shows all files and extensions that are added or deleted on a single page.
@@ -186,9 +169,10 @@ Select Command **"Sync : Advanced Options > Share Settings with Public GIST"**
186169

187170
Other users can give your Gist Id to download the Gist, but they can't upload their settings on your Gist.
188171

189-
190172
## Settings
191173

174+
Settings can be changed through the settings page, which can be accessed through **"> Sync : Advanced Options > Open Settings Page"**
175+
192176
There are two types of settings in Settings Sync.
193177
I will recommend you to read the configurations details [here](https://medium.com/@itsShanKhan/visual-studio-code-settings-sync-configurations-ed8dd6fd9753).
194178

@@ -199,19 +183,20 @@ You can customize the settings in gist settings like:
199183

200184
```
201185
1. Configure Gist Id (Environment)
202-
2. Configure auto upload / download for Github Gist
186+
2. Configure auto upload / download for Github Gist
203187
3. Configure extension sync behaviour
204188
4. Configure force download
205-
5. Configure quiet sync
189+
4. Configure force upload
190+
6. Configure quiet sync
206191
```
207192

208193
```json
209194
"sync.gist": "0c929b1a6c51015cdc9e0fe2e369ea4c",
210195
"sync.autoDownload": false,
211196
"sync.autoUpload": false,
212197
"sync.forceDownload": false,
198+
"sync.forceUpload": false,
213199
"sync.quietSync": false,
214-
"sync.askGistName": false,
215200
"sync.removeExtensions": true,
216201
"sync.syncExtensions": true
217202
```
@@ -238,33 +223,31 @@ You can customize the sync:
238223

239224
```json
240225
{
241-
"ignoreUploadFiles": [
242-
"projects.json",
243-
"projects_cache_vscode.json",
244-
"projects_cache_git.json",
245-
"projects_cache_svn.json",
246-
"gpm_projects.json",
247-
"gpm-recentItems.json"
248-
],
249-
"ignoreUploadFolders": [
250-
"workspaceStorage"
251-
],
252-
"ignoreExtensions": [
253-
"ignored_extension_name"
254-
],
255-
"gistDescription": "Visual Studio Code Settings Sync Gist",
256-
"version": 310,
257-
"token": "YOUR_GITHUB_TOKEN_HERE",
258-
"downloadPublicGist": false,
259-
"supportedFileExtensions": [
260-
"json",
261-
"code-snippets"
262-
],
263-
"openTokenLink": true,
264-
"lastUpload": null,
265-
"lastDownload": null,
266-
"githubEnterpriseUrl": null,
267-
"hostName": null
226+
"ignoreUploadFiles": [
227+
"state.*",
228+
"syncLocalSettings.json",
229+
".DS_Store",
230+
"sync.lock",
231+
"projects.json",
232+
"projects_cache_vscode.json",
233+
"projects_cache_git.json",
234+
"projects_cache_svn.json",
235+
"gpm_projects.json",
236+
"gpm-recentItems.json"
237+
],
238+
"ignoreUploadFolders": ["workspaceStorage"],
239+
"ignoreExtensions": ["ignored_extension_name"],
240+
"gistDescription": "Visual Studio Code Settings Sync Gist",
241+
"version": 310,
242+
"token": "YOUR_GITHUB_TOKEN_HERE",
243+
"downloadPublicGist": false,
244+
"supportedFileExtensions": ["json", "code-snippets"],
245+
"openTokenLink": true,
246+
"lastUpload": null,
247+
"lastDownload": null,
248+
"githubEnterpriseUrl": null,
249+
"hostName": null,
250+
"autoUploadDelay": 20
268251
}
269252
```
270253

@@ -294,20 +277,18 @@ Thank you to all our backers! [[Become a backer](https://opencollective.com/code
294277
<a href="https://opencollective.com/code-settings-sync#backers" target="_blank"><img src="https://opencollective.com/code-settings-sync/backers.svg?width=890"></a>
295278
[<img src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif">](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=4W3EWHHBSYMM8&lc=IE&item_name=Code%20Settings%20Sync&item_number=visual%20studio%20code%20settings%20sync&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
296279

297-
298280
### Sponsors
299281

300282
Thank you to all our sponsors! (please ask your company to also support this open source project by [becoming a sponsor](https://opencollective.com/code-settings-sync))
301283

302284
## [Contributors](https://github.com/shanalikhan/code-settings-sync/graphs/contributors)
285+
303286
# [Release Notes](https://shanalikhan.github.io/2016/05/14/Visual-studio-code-sync-settings-release-notes.html)
304287

305288
# License
306289

307-
308290
[![Version](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/shanalikhan/code-settings-sync/blob/master/LICENSE)
309291

310-
311292
[![Version](https://vsmarketplacebadge.apphb.com/version/Shan.code-settings-sync.svg)](https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync)
312293

313294
[![Installs](https://vsmarketplacebadge.apphb.com/installs/Shan.code-settings-sync.svg)](https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync)

configs/webpack.config.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
const path = require("path");
44
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
5-
const webpack = require("webpack");
65

76
/** @type WebpackOptions */
87
const config = {
8+
stats: {
9+
warningsFilter: /Critical dependency: the request of a dependency is an expression/
10+
},
911
target: "node",
1012
entry: "./src/extension.ts",
1113
output: {
@@ -17,7 +19,10 @@ const config = {
1719
resolve: {
1820
extensions: [".ts", ".js"],
1921
alias: {
20-
deepmerge$: path.resolve(__dirname, "../node_modules/deepmerge/dist/umd.js")
22+
deepmerge$: path.resolve(
23+
__dirname,
24+
"../node_modules/deepmerge/dist/umd.js"
25+
)
2126
}
2227
},
2328
module: {

images/existing-gist.png

85.2 KB
Loading

images/login-with-github.png

152 KB
Loading

images/white-cloud.png

73.6 KB
Loading

0 commit comments

Comments
 (0)