Skip to content

Commit

Permalink
V3.3.1 (#924)
Browse files Browse the repository at this point in the history
* Rename package.nls.pt.json to package.nls.pt-br.json

This aligns the filename to the one needed by VSCode.

* Fix issues on first install

* #922

* #922

* #922
  • Loading branch information
shanalikhan authored Jun 25, 2019
1 parent f30d800 commit ebdca4f
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 13 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

[![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)

#### v3.3.1 - June 25,2019
* Small Improvements

#### v3.3.0 - June 25,2019

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"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.3.0",
"version": "3.3.1",
"icon": "images/cloud.png",
"publisher": "Shan",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion package.nls.pt.json → package.nls.pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@
"common.prompt.enterGithubAccessToken": "Você também adicionar manualmente um token (Pasta de Usuário / syncLocalSettings.json). Pressione [Enter] ou a tecla [Esc] para cancelar.",
"common.prompt.restartCode": "Você deseja recarregar para aplicar extensões e configurações?,",
"common.button.yes": "Sim"
}
}
5 changes: 2 additions & 3 deletions src/commons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ export default class Commons {

Object.assign(customSettings, tempObj);
customSettings.token = customSettings.token.trim();
return customSettings;
}
} catch (e) {
customSettings = null;
Commons.LogException(
e,
"Sync : Unable to read " +
Expand All @@ -182,9 +182,8 @@ export default class Commons {
"http://shanalikhan.github.io/2017/02/19/Option-to-ignore-settings-folders-code-settings-sync.html"
)
);
customSettings = null;
return customSettings;
}
return customSettings;
}

public async SetCustomSettings(setting: CustomConfig): Promise<boolean> {
Expand Down
2 changes: 1 addition & 1 deletion src/environmentPath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function osTypeFromString(osName: string): OsType {
}

export class Environment {
public static CURRENT_VERSION: number = 330;
public static CURRENT_VERSION: number = 331;
public static getVersion(): string {
return (
Environment.CURRENT_VERSION.toString().slice(0, 1) +
Expand Down
18 changes: 11 additions & 7 deletions src/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -621,13 +621,17 @@ export class Sync {
file.gistName === state.environment.FILE_KEYBINDING_MAC ||
file.gistName === state.environment.FILE_KEYBINDING_DEFAULT
) {
const localContent = await FileService.ReadFile(filePath);
content = PragmaUtil.processBeforeWrite(
localContent,
content,
state.environment.OsType,
localSettings.customConfig.hostName
);
const fileExists = await FileService.FileExists(filePath);

if (fileExists) {
const localContent = await FileService.ReadFile(filePath);
content = PragmaUtil.processBeforeWrite(
localContent,
content,
state.environment.OsType,
localSettings.customConfig.hostName
);
}
}

actionList.push(
Expand Down

0 comments on commit ebdca4f

Please sign in to comment.