Skip to content

Commit

Permalink
V3.2 (#648)
Browse files Browse the repository at this point in the history
* chore(package): update tslint-plugin-prettier to version 2.0.0

* Updated: German translation

* #641

* Add support for VSCodium

* Corrected the message to be displayed

* Add Japanese translation file

* be able to upload additional file

* be able to download additional files

* create new advanced setting to add Customized Sync file

* fix typo eslint => eslintrc

* Add Import Custom File to workspace option

* unify display message: Custom Sync File

* Test Directory

* =Adding HostName property. Get hostname using 'os.hostname()'

* =Need definition for supported OS's. Using strict match regex to get @sync pragmas. Should it support multiple spaces? Replacing settings.json content before writing file. Should be better removing lines instead of add comments? Replacing settings.json before upload to remove @sync ignore pragms.

* Added English message for OSNotSupported message while processing uploading content

* mocha and chai packages added as dev dependencies. Test script not working while compiling.

* Moving pragma functions to a separated file

* Added Pragma util static class. Support for host, env and os values in every orther. Remove whitespaces before upload. Alert user if OS value is not a valid OS.

* Added hostName property to CustomSettings

* Tests files added. Estructure test per feature.

* Added some documentation. hostName property on custom config.

* uncomment lines function. Uncomment all @sync settings before upload. Only insert comments if it doesn't match with matchine os or host or env. Uncomment line before write if it matched.

* Do replace ments one time per setting pragma. Test uncoment function. More redeable settings json for testing.

* Add SUPPORTED_OS and osTypeFromString to environmentPath.ts as requested. Get OS from OsType enum. Remove os.hostName()

* Check valid JSON before writting file. All the comments and trilling commas are removed. Must check this. If not valid OS is detected inform user. Added function to remove comments from text.

* Chatch exception during upload. Should it abort upload?

* Adding VS Code tests in typescript. Run test changing launch mode to "Launch Test". Remove javascript files.

* Environment - treat non-OSS instalations on Linux as XDG

* Improvements
#628 , #629

* minor grammatical fixes

* add fileService.test.ts

* Version Change

* #331

* #513

* Add webpack bundling (#676)

* Update issue templates

* add webpack bundling for faster startup

* no conflicts

* Revert "Add webpack bundling (#676)" (#679)

This reverts commit e68a243.

* Gist Object changed

* Update package.json

* v3.2 change log
  • Loading branch information
shanalikhan authored Oct 17, 2018
1 parent 7494f13 commit 3fdbd57
Show file tree
Hide file tree
Showing 19 changed files with 1,096 additions and 313 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# ChangeLog : 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)

[![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)
[![Follow](https://img.shields.io/twitter/follow/itsShanKhan.svg?style=social&label=Follow)](https://twitter.com/intent/follow?screen_name=itsShanKhan)

#### Version - 3.2.0 - 17 Oct, 2018

* Prompt to reload VSCode after installing extensions [#629](https://github.com/shanalikhan/code-settings-sync/issues/629)
* Keep output of CLI installation command [#628](https://github.com/shanalikhan/code-settings-sync/issues/628)
* Dont write default settings sync config to code settings.json [#513](https://github.com/shanalikhan/code-settings-sync/issues/513)
* vscodium download settings fails [#650](https://github.com/shanalikhan/code-settings-sync/issues/650) - Thanks for PR [#651](https://github.com/shanalikhan/code-settings-sync/pull/651) by [@stripedpajamas](https://github.com/stripedpajamas)
* Does not work with Portable Visual Studio Code [#331](https://github.com/shanalikhan/code-settings-sync/issues/331)
* Flatpak Support for Settings Sync [#621](https://github.com/shanalikhan/code-settings-sync/issues/621) - Thanks for PR [#657](https://github.com/shanalikhan/code-settings-sync/pull/657) by [@laloch](https://github.com/laloch)
* Per-platform / per-hostname inline settings [#640](https://github.com/shanalikhan/code-settings-sync/issues/640) - Thanks for PR [#667](https://github.com/shanalikhan/code-settings-sync/pull/667) by [@ioprotium](https://github.com/ioprotium)
* Idea/Suggestion: Adds support to sync custom files [#258](https://github.com/shanalikhan/code-settings-sync/issues/258) - Thanks for PR [#258](https://github.com/shanalikhan/code-settings-sync/pull/258) by [@tkrtmy](https://github.com/tkrtmy)


#### Version - 3.1.2
* Extension CLI Download Improvements.

Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
5. Auto upload Settings on file change.
6. Share the Gist with other users and let them download your settings.
7. Supports GitHub Enterprise
8. Support pragmas with @sync keywords: host, os and env are supported.
```


Expand Down Expand Up @@ -247,7 +248,8 @@ You can customize the sync:
"useCliBaseInstallation": true,
"lastUpload": null,
"lastDownload": null,
"githubEnterpriseUrl": null
"githubEnterpriseUrl": null,
"hostName": null
}
```

Expand Down
329 changes: 167 additions & 162 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,171 +1,176 @@
{
"name": "code-settings-sync",
"displayName": "Settings Sync",
"description": "Synchronize Settings, Snippets, Themes, File Icons, Launch, Keybindings, Workspaces and Extensions Across Multiple Machines Using GitHub Gist.",
"version": "3.1.2",
"icon": "images/cloud.png",
"publisher": "Shan",
"author": {
"name": "Shan Khan",
"url": "http://shanalikhan.github.io",
"email": "shanalikhan@hotmail.com"
"name": "code-settings-sync",
"displayName": "Settings Sync",
"description": "Synchronize Settings, Snippets, Themes, File Icons, Launch, Keybindings, Workspaces and Extensions Across Multiple Machines Using GitHub Gist.",
"version": "3.2.0",
"icon": "images/cloud.png",
"publisher": "Shan",
"author": {
"name": "Shan Khan",
"url": "http://shanalikhan.github.io",
"email": "shanalikhan@hotmail.com"
},
"homepage": "https://shanalikhan.github.io",
"galleryBanner": {
"color": "#3B4859",
"theme": "dark"
},
"badges": [
{
"url": "https://vsmarketplacebadge.apphb.com/version/Shan.code-settings-sync.svg",
"description": "Latest Version",
"href": "https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync"
},
"homepage": "https://shanalikhan.github.io",
"galleryBanner": {
"color": "#3B4859",
"theme": "dark"
{
"url": "https://vsmarketplacebadge.apphb.com/installs/Shan.code-settings-sync.svg",
"description": "Total Downloads",
"href": "https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync"
},
"badges": [
{
"url": "https://vsmarketplacebadge.apphb.com/version/Shan.code-settings-sync.svg",
"description": "Latest Version",
"href": "https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync"
},
{
"url": "https://vsmarketplacebadge.apphb.com/installs/Shan.code-settings-sync.svg",
"description": "Total Downloads",
"href": "https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync"
},
{
"url": "https://vsmarketplacebadge.apphb.com/rating/Shan.code-settings-sync.svg",
"description": "Ratings",
"href": "https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync"
},
{
"url": "https://img.shields.io/badge/Join%20Community-slack-green.svg",
"description": "Join Slack Community",
"href": "https://join.slack.com/t/codesettingssync/shared_invite/enQtMzE3MjY5NTczNDMwLTYwMTIwNGExOGE2MTJkZWU0OTU5MmI3ZTc4N2JkZjhjMzY1OTk5OGExZjkwMDMzMDU4ZTBlYjk5MGQwZmMyNzk"
}
],
"repository": {
"type": "git",
"url": "https://github.com/shanalikhan/code-settings-sync.git"
{
"url": "https://vsmarketplacebadge.apphb.com/rating/Shan.code-settings-sync.svg",
"description": "Ratings",
"href": "https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync"
},
"bugs": {
"url": "https://github.com/shanalikhan/code-settings-sync/issues",
"email": "shanalikhan@hotmail.com"
},
"engines": {
"vscode": "^1.8.0"
},
"categories": [
"Other"
],
"keywords": [
"vscode-sync",
"vscode-settings-sync",
"code-settings-sync",
"settings-sync",
"workspace-sync",
"multi-root ready"
{
"url": "https://img.shields.io/badge/Join%20Community-slack-green.svg",
"description": "Join Slack Community",
"href": "https://join.slack.com/t/codesettingssync/shared_invite/enQtMzE3MjY5NTczNDMwLTYwMTIwNGExOGE2MTJkZWU0OTU5MmI3ZTc4N2JkZjhjMzY1OTk5OGExZjkwMDMzMDU4ZTBlYjk5MGQwZmMyNzk"
}
],
"repository": {
"type": "git",
"url": "https://github.com/shanalikhan/code-settings-sync.git"
},
"bugs": {
"url": "https://github.com/shanalikhan/code-settings-sync/issues",
"email": "shanalikhan@hotmail.com"
},
"engines": {
"vscode": "^1.28.0"
},
"categories": [
"Other"
],
"keywords": [
"vscode-sync",
"vscode-settings-sync",
"code-settings-sync",
"settings-sync",
"workspace-sync",
"multi-root ready"
],
"activationEvents": [
"*"
],
"main": "./out/src/extension",
"contributes": {
"commands": [
{
"command": "extension.HowSettings",
"title": "%cmd.howSetting.title%"
},
{
"command": "extension.downloadSettings",
"title": "%cmd.downloadSettings.title%"
},
{
"command": "extension.updateSettings",
"title": "%cmd.updateSettings.title%"
},
{
"command": "extension.resetSettings",
"title": "%cmd.resetSettings.title%"
},
{
"command": "extension.otherOptions",
"title": "%cmd.otherOptions.title%"
}
],
"activationEvents": [
"*"
"keybindings": [
{
"key": "alt+shift+u",
"command": "extension.updateSettings"
},
{
"key": "alt+shift+d",
"command": "extension.downloadSettings"
}
],
"main": "./out/src/extension",
"contributes": {
"commands": [
{
"command": "extension.HowSettings",
"title": "%cmd.howSetting.title%"
},
{
"command": "extension.downloadSettings",
"title": "%cmd.downloadSettings.title%"
},
{
"command": "extension.updateSettings",
"title": "%cmd.updateSettings.title%"
},
{
"command": "extension.resetSettings",
"title": "%cmd.resetSettings.title%"
},
{
"command": "extension.otherOptions",
"title": "%cmd.otherOptions.title%"
}
],
"keybindings": [
{
"key": "alt+shift+u",
"command": "extension.updateSettings"
},
{
"key": "alt+shift+d",
"command": "extension.downloadSettings"
}
],
"configuration": {
"properties": {
"sync.gist": {
"type": "string",
"default": "",
"description": "%ext.config.gist%"
},
"sync.autoDownload": {
"type": "boolean",
"default": false,
"description": "%ext.config.autoDownload%"
},
"sync.autoUpload": {
"type": "boolean",
"default": false,
"description": "%ext.config.autoUpload%"
},
"sync.forceDownload": {
"type": "boolean",
"default": false,
"description": "%ext.config.forceDownload%"
},
"sync.quietSync": {
"type": "boolean",
"default": false,
"description": "%ext.config.quietSync%"
},
"sync.askGistName": {
"type": "boolean",
"default": false,
"description": "%ext.config.askGistName%"
},
"sync.removeExtensions": {
"type": "boolean",
"default": true,
"description": "%ext.config.removeExtensions%"
},
"sync.syncExtensions": {
"type": "boolean",
"default": true,
"description": "%ext.config.syncExtensions%"
}
},
"title": "%ext.config.title%"
"configuration": {
"properties": {
"sync.gist": {
"type": "string",
"default": "",
"description": "%ext.config.gist%"
},
"sync.autoDownload": {
"type": "boolean",
"default": false,
"description": "%ext.config.autoDownload%"
},
"sync.autoUpload": {
"type": "boolean",
"default": false,
"description": "%ext.config.autoUpload%"
},
"sync.forceDownload": {
"type": "boolean",
"default": false,
"description": "%ext.config.forceDownload%"
},
"sync.quietSync": {
"type": "boolean",
"default": false,
"description": "%ext.config.quietSync%"
},
"sync.askGistName": {
"type": "boolean",
"default": false,
"description": "%ext.config.askGistName%"
},
"sync.removeExtensions": {
"type": "boolean",
"default": true,
"description": "%ext.config.removeExtensions%"
},
"sync.syncExtensions": {
"type": "boolean",
"default": true,
"description": "%ext.config.syncExtensions%"
}
},
"scripts": {
"vscode:prepublish": "npm run tslint-check && npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"tslint-check": "tslint -c ./tslint.json ./src/**/*.ts ./src/*.ts",
"format": "prettier --write './src/**/*.ts'"
},
"devDependencies": {
"@types/fs-extra": "^5.0.4",
"@types/node": "^10.7.0",
"prettier": "^1.14.2",
"tslint": "^5.11.0",
"tslint-plugin-prettier": "^1.3.0",
"typescript": "^3.0.1",
"vscode": "^1.1.21"
},
"dependencies": {
"@octokit/rest": "^15.10.0",
"adm-zip": "^0.4.11",
"chokidar": "^2.0.2",
"fs-extra": "^7.0.0",
"https-proxy-agent": "^2.1.1",
"lockfile": "^1.0.4",
"temp": "^0.8.3"
},
"title": "%ext.config.title%"
}
},
"scripts": {
"vscode:prepublish": "npm run tslint-check && npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"tslint-check": "tslint -c ./tslint.json ./src/**/*.ts ./src/*.ts",
"format": "prettier --write './src/**/*.ts'",
"test": "npm run vscode:prepublish && node ./node_modules/bin/mocha --recursive"
},
"devDependencies": {
"@types/fs-extra": "^5.0.4",
"@types/node": "^10.11.6",
"@types/chai":"4.1.6",
"@types/mocha": "^5.2.0",
"chai": "^4.2.0",
"mocha": "^5.2.0",
"prettier": "^1.14.3",
"tslint": "^5.11.0",
"tslint-plugin-prettier": "^2.0.0",
"typescript": "^3.1.2",
"vscode": "^1.1.21"
},
"dependencies": {
"@octokit/rest": "^15.13.0",
"adm-zip": "^0.4.11",
"chokidar": "^2.0.4",
"fs-extra": "^7.0.0",
"https-proxy-agent": "^2.2.1",
"lockfile": "^1.0.4",
"temp": "^0.8.3"
}
}
Loading

0 comments on commit 3fdbd57

Please sign in to comment.