Skip to content

Commit

Permalink
Gist Name change
Browse files Browse the repository at this point in the history
  • Loading branch information
shanalikhan committed Aug 18, 2018
1 parent a358fc2 commit 783d8b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/setting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Environment } from "./environmentPath";
export class ExtensionConfig {
public gist: string = null;
public quietSync: boolean = false;
public askGistName: boolean = false;
public removeExtensions: boolean = true;
public syncExtensions: boolean = true;
public autoDownload: boolean = false;
Expand Down Expand Up @@ -52,4 +51,5 @@ export class CustomSettings {
public lastUpload: Date = null;
public lastDownload: Date = null;
public githubEnterpriseUrl: string = null;
public askGistName: boolean = false;
}
5 changes: 3 additions & 2 deletions src/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export class Sync {
let newGIST: boolean = false;
try {
if (syncSetting.gist == null || syncSetting.gist === "") {
if (syncSetting.askGistName) {
if (customSettings.askGistName) {
customSettings.gistDescription = await common.AskGistName();
}
newGIST = true;
Expand Down Expand Up @@ -517,7 +517,8 @@ export class Sync {
content,
env.ExtensionFolder,
useCli,
ignoredExtensions, env.OsType,
ignoredExtensions,
env.OsType,
(message: string, dispose: boolean) => {
if (!syncSetting.quietSync) {
outputChannel.appendLine(message);
Expand Down

0 comments on commit 783d8b0

Please sign in to comment.