Skip to content

Commit

Permalink
latest version supported
Browse files Browse the repository at this point in the history
  • Loading branch information
Shan Khan authored and Shan Khan committed Sep 17, 2016
1 parent 2c086b0 commit d938b16
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"email": "shanalikhan@hotmail.com"
},
"engines": {
"vscode": "^1.3.0"
"vscode": "^1.5.0"
},
"categories": [
"Other"
Expand Down
31 changes: 17 additions & 14 deletions src/commons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,12 @@ export class Commons {
reject(err);
});
}
} else {
if (token !== 'esc') {
getToken()
}
}
// else {
// if (token !== 'esc') {
// getToken()
// }
// }
});
} ());
});
Expand All @@ -161,12 +162,12 @@ export class Commons {
reject(err);
});
}

} else {
if (gist !== 'esc') {
getGist();
}
}
}
// else {
// if (gist !== 'esc') {
// getGist();
// }
// }

});
})();
Expand All @@ -181,15 +182,17 @@ export class Commons {
let options: vscode.InputBoxOptions = {
placeHolder: "Enter Github Personal Access Token",
password: false,
prompt: "Link is opened to get the github token. Enter token and press [Enter] or type 'esc' to cancel."
prompt: "Link opened to get the GitHub token. Enter token and press [Enter] or press / type 'esc' to cancel.",
ignoreFocusOut : true
};
return options;
}
else {
let options: vscode.InputBoxOptions = {
placeHolder: "Enter GIST ID",
password: false,
prompt: "Enter GIST ID from previously uploaded settings and press [Enter] or type 'esc' to cancel."
prompt: "Enter GIST ID from previously uploaded settings and press [Enter] or press / type 'esc' to cancel.",
ignoreFocusOut : true
};
return options;
}
Expand Down Expand Up @@ -220,12 +223,12 @@ export class Commons {
}

console.log("FILE URI For Summary Page : " + tempURI);

var setting: vscode.Uri = vscode.Uri.parse("untitled:" + tempURI);

vscode.workspace.openTextDocument(setting).then((a: vscode.TextDocument) => {

vscode.window.showTextDocument(a, 1, false).then(e => {
vscode.window.showTextDocument(a, 1, false).then((e : vscode.TextEditor) => {
e.edit(edit => {
edit.insert(new vscode.Position(0, 0), "VISUAL STUDIO CODE SETTINGS SYNC \r\n\r\n" + status + " SUMMARY \r\n\r\n");
edit.insert(new vscode.Position(1, 0), "-------------------- \r\n");
Expand Down

0 comments on commit d938b16

Please sign in to comment.