Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
shanalikhan committed Sep 12, 2019
1 parent 7ae3063 commit ea82fa5
Show file tree
Hide file tree
Showing 18 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ You can customize the sync:
"lastUpload": null,
"lastDownload": null,
"githubEnterpriseUrl": null,
"askGistName": false,
"askGistDescription": false,
"customFiles": {},
"hostName": null,
"universalKeybindings": false,
Expand Down
2 changes: 1 addition & 1 deletion package.nls.de.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"ext.config.syncExtensions": "Deaktivieren Sie diese Einstellungen, wenn sie Ihre Erweiterungen nicht hochladen möchten.",
"ext.config.syncExtensions.name": "Erweiterungen Synchronisieren",
"ext.config.title": "Einstellungen von VSCode Synchronisieren",
"ext.globalConfig.askGistName.name": "Fragen Gist Namen",
"ext.globalConfig.askGistDescription.name": "Fragen Gist Namen",
"ext.globalConfig.autoUploadDelay.name": "Verzögerung für das automatischen Hochladen",
"ext.globalConfig.autoUploadDelay.placeholder": "Geben Sie die Anzahl der Sekunden für die Verzögerung ein",
"ext.globalConfig.downloadPublicGist.name": "Herunterladen eines Public Gist",
Expand Down
2 changes: 1 addition & 1 deletion package.nls.es.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"ext.config.syncExtensions": "Establece en false si usted no desea cargar/descargar las extensiones.",
"ext.config.syncExtensions.name": "Sincronización De Extensiones",
"ext.config.title": "Código De Configuración De La Configuración De Sincronización De La Configuración De",
"ext.globalConfig.askGistName.name": "Pida A Los Gist Nombre",
"ext.globalConfig.askGistDescription.name": "Pida A Los Gist Nombre",
"ext.globalConfig.autoUploadDelay.name": "Carga Automática De Retardo",
"ext.globalConfig.autoUploadDelay.placeholder": "Ingrese la cantidad de segundos de retardo de auto-carga",
"ext.globalConfig.downloadPublicGist.name": "Descargar Público Esencial",
Expand Down
2 changes: 1 addition & 1 deletion package.nls.fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"ext.config.syncExtensions": "Changez la valeur à false si vous ne voulez pas uploader/télécharger l'extensions.",
"ext.config.syncExtensions.name": "Synchronisation Des Extensions",
"ext.config.title": "Paramètres de configuration de la synchronisation des paramètres VSCode",
"ext.globalConfig.askGistName.name": "Demande le nom du Gist",
"ext.globalConfig.askGistDescription.name": "Demande le nom du Gist",
"ext.globalConfig.autoUploadDelay.name": "Délai de l'upload automatique",
"ext.globalConfig.autoUploadDelay.placeholder": "Entrez le montant de secondes avant chaque upload automatique",
"ext.globalConfig.downloadPublicGist.name": "Télécharger un Gist Public",
Expand Down
2 changes: 1 addition & 1 deletion package.nls.hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"ext.config.syncExtensions": "Állítsa be, hogy hamis, ha nem akarod, hogy a feltöltés/letöltés a fájlokat.",
"ext.config.syncExtensions.name": "Fordította: Z",
"ext.config.title": "Kód Beállítások A Szinkronizálás Konfigurációs Beállítások",
"ext.globalConfig.askGistName.name": "Kérdezd Meg Lényeget Név",
"ext.globalConfig.askGistDescription.name": "Kérdezd Meg Lényeget Név",
"ext.globalConfig.autoUploadDelay.name": "Automatikus Feltöltés Késedelem",
"ext.globalConfig.autoUploadDelay.placeholder": "Adja meg az összeget másodperc késleltetés az automatikus feltöltés",
"ext.globalConfig.downloadPublicGist.name": "Letöltés Nyilvános Gist",
Expand Down
2 changes: 1 addition & 1 deletion package.nls.it.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"ext.config.syncExtensions": "Impostare a false se non si desidera caricare/scaricare le estensioni.",
"ext.config.syncExtensions.name": "Sincronizzazione Delle Estensioni",
"ext.config.title": "Codice Impostazioni Impostazioni Di Configurazione Di Sincronizzazione",
"ext.globalConfig.askGistName.name": "Chiedi Gist Nome",
"ext.globalConfig.askGistDescription.name": "Chiedi Gist Nome",
"ext.globalConfig.autoUploadDelay.name": "Upload Automatico Di Ritardo",
"ext.globalConfig.autoUploadDelay.placeholder": "Immettere il numero di secondi di ritardo di auto-upload",
"ext.globalConfig.downloadPublicGist.name": "Scarica Pubblico Gist",
Expand Down
2 changes: 1 addition & 1 deletion package.nls.ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
"ext.globalConfig.gistDescription.placeholder": "Gist の説明を入力してください",
"ext.globalConfig.autoUploadDelay.name": "自動アップロードの遅延",
"ext.globalConfig.autoUploadDelay.placeholder": "自動アップロードの遅延時間 (秒) を入力してください",
"ext.globalConfig.askGistName.name": "Gist Name の確認",
"ext.globalConfig.askGistDescription.name": "Gist Name の確認",
"ext.globalConfig.downloadPublicGist.name": "公開 Gist のダウンロード",
"ext.globalConfig.openTokenLink.name": "トークンのリンクを開く",
"ext.config.gist.name": "Gist ID",
Expand Down
2 changes: 1 addition & 1 deletion package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
"ext.globalConfig.gistDescription.placeholder": "Enter Gist Description",
"ext.globalConfig.autoUploadDelay.name": "Auto Upload Delay",
"ext.globalConfig.autoUploadDelay.placeholder": "Enter the amount of seconds to delay auto-upload",
"ext.globalConfig.askGistName.name": "Ask Gist Name",
"ext.globalConfig.askGistDescription.name": "Ask Gist Name",
"ext.globalConfig.downloadPublicGist.name": "Download Public Gist",
"ext.globalConfig.openTokenLink.name": "Open Token Link",
"ext.config.gist.name": "Gist ID",
Expand Down
4 changes: 2 additions & 2 deletions package.nls.ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"ext.config.host": "GHE를 사용하려면 GitHub Enterprise 호스트를 설정하십시오.",
"ext.config.pathPrefix": "GHE를 사용하기 위해서는 GitHub Enterprise API의 접두사가 필요합니다. 일반적으로 '/api/v3'를 사용합니다. 호스트가 설정되어있을 때만 사용됩니다.",
"ext.config.quietSync": "설정시 결과를 알림창 대신 상태바에 표시합니다.",
"ext.config.askGistName": "생성시 Gist 이름을 묻습니다. 여러 개의 Gist가 존재할 때 식별에 도움이 됩니다.",
"ext.config.askGistDescription": "생성시 Gist 이름을 묻습니다. 여러 개의 Gist가 존재할 때 식별에 도움이 됩니다.",
"ext.config.removeExtensions": "동기화 다운로드로 인해 확장(extension)이 삭제되는 걸 막고 싶다면 False로 설정하세요.",
"ext.config.syncExtensions": "만약 확장(extension)이 업로드/다운로드되는 걸 원하지 않으면 False로 설정하세요.",
"cmd.howSetting.title": "Sync: 환경설정 방법",
Expand Down Expand Up @@ -127,7 +127,7 @@
"ext.globalConfig.gistDescription.placeholder": "Gist 설명을 입력하세요",
"ext.globalConfig.autoUploadDelay.name": "자동 업로드 간격",
"ext.globalConfig.autoUploadDelay.placeholder": "자동 업로드 간격을 초 단위로 입력하세요",
"ext.globalConfig.askGistName.name": "Gist 이름",
"ext.globalConfig.askGistDescription.name": "Gist 이름",
"ext.globalConfig.downloadPublicGist.name": "public Gist 다운로드",
"ext.globalConfig.openTokenLink.name": "토큰 링크 열기",
"ext.config.gist.name": "Gist ID",
Expand Down
2 changes: 1 addition & 1 deletion package.nls.pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"ext.config.syncExtensions": "Definido para false se você não quiser fazer o upload/download de extensões.",
"ext.config.syncExtensions.name": "Sincronização De Extensões",
"ext.config.title": "Código De Definições De Sincronização De Definições De Configuração",
"ext.globalConfig.askGistName.name": "Pergunte Gist Nome",
"ext.globalConfig.askGistDescription.name": "Pergunte Gist Nome",
"ext.globalConfig.autoUploadDelay.name": "Upload Automático De Atraso",
"ext.globalConfig.autoUploadDelay.placeholder": "Insira a quantidade de segundos de atraso auto-upload",
"ext.globalConfig.downloadPublicGist.name": "Download Pública Essência",
Expand Down
2 changes: 1 addition & 1 deletion package.nls.ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"ext.config.syncExtensions": "Установите значение true для синхронизации расширений.",
"ext.config.syncExtensions.name": "Синхронизация расширений",
"ext.config.title": "Настройки расширения Code Settings Sync",
"ext.globalConfig.askGistName.name": "Задать имя Gist",
"ext.globalConfig.askGistDescription.name": "Задать имя Gist",
"ext.globalConfig.autoUploadDelay.name": "Задержка перед автозагрузкой",
"ext.globalConfig.autoUploadDelay.placeholder": "Введите количество секунд для задержки перед автозагрузкой",
"ext.globalConfig.downloadPublicGist.name": "Скачать настройки из публичного Gist",
Expand Down
2 changes: 1 addition & 1 deletion package.nls.tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"ext.config.syncExtensions": "Eğer/uzantıları karşıdan yüklemek istemiyorsan false olarak ayarlayın.",
"ext.config.syncExtensions.name": "Sync Uzantıları",
"ext.config.title": "Kod Ayarları Eşitleme Yapılandırma Ayarları",
"ext.globalConfig.askGistName.name": "Özü Adını Sor ",
"ext.globalConfig.askGistDescription.name": "Özü Adını Sor ",
"ext.globalConfig.autoUploadDelay.name": "Otomatik Yükleme Gecikme",
"ext.globalConfig.autoUploadDelay.placeholder": "Otomatik gecikme için upload saniye miktarını girin",
"ext.globalConfig.downloadPublicGist.name": "İndir Kamu Özü",
Expand Down
2 changes: 1 addition & 1 deletion package.nls.zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"ext.config.syncExtensions": "设置为 false 如果你不想上传/下载扩展。",
"ext.config.syncExtensions.name": "同步扩展",
"ext.config.title": "代码同步配置",
"ext.globalConfig.askGistName.name": "创建 Gist 时询问名称,这可以帮助您在您的多个 Gist 中找到这个配置",
"ext.globalConfig.askGistDescription.name": "创建 Gist 时询问名称,这可以帮助您在您的多个 Gist 中找到这个配置",
"ext.globalConfig.autoUploadDelay.name": "自动上传延迟",
"ext.globalConfig.autoUploadDelay.placeholder": "输入延迟的秒数",
"ext.globalConfig.downloadPublicGist.name": "下载公开 Gist",
Expand Down
2 changes: 1 addition & 1 deletion package.nls.zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"ext.config.syncExtensions": "設定為 false 如果你不想上傳/下載延伸模組。",
"ext.config.syncExtensions.name": "同步延伸模組",
"ext.config.title": "Code Settings Sync 設定",
"ext.globalConfig.askGistName.name": "創建 Gist 時詢問名稱,這可以幫助您在您的多個 Gist 中找到這個設定",
"ext.globalConfig.askGistDescription.name": "創建 Gist 時詢問名稱,這可以幫助您在您的多個 Gist 中找到這個設定",
"ext.globalConfig.autoUploadDelay.name": "自動上傳延遲",
"ext.globalConfig.autoUploadDelay.placeholder": "輸入延遲的秒數",
"ext.globalConfig.downloadPublicGist.name": "下載公開 Gist",
Expand Down
4 changes: 2 additions & 2 deletions src/commons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,9 @@ export default class Commons {
}

/**
* AskGistName
* AskGistDescription
*/
public async AskGistName(): Promise<string> {
public async AskGistDescription(): Promise<string> {
return vscode.window.showInputBox({
prompt: localize("common.prompt.multipleGist"),
ignoreFocusOut: true,
Expand Down
2 changes: 1 addition & 1 deletion src/models/customConfig.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class CustomConfig {
public lastUpload: Date = null;
public lastDownload: Date = null;
public githubEnterpriseUrl: string = null;
public askGistName: boolean = false;
public askGistDescription: boolean = false;
public customFiles: { [key: string]: string } = {};
public hostName: string = null;
public universalKeybindings: boolean = false;
Expand Down
4 changes: 2 additions & 2 deletions src/service/webview.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ export class WebviewService {
correspondingSetting: "autoUploadDelay"
},
{
name: localize("ext.globalConfig.askGistName.name"),
name: localize("ext.globalConfig.askGistDescription.name"),
placeholder: "",
type: UISettingType.Checkbox,
correspondingSetting: "askGistName"
correspondingSetting: "askGistDescription"
},
{
name: localize("ext.globalConfig.downloadPublicGist.name"),
Expand Down
4 changes: 2 additions & 2 deletions src/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ export class Sync {
let newGIST: boolean = false;
try {
if (syncSetting.gist == null || syncSetting.gist === "") {
if (customSettings.askGistName) {
customSettings.gistDescription = await state.commons.AskGistName();
if (customSettings.askGistDescription) {
customSettings.gistDescription = await state.commons.AskGistDescription();
}
newGIST = true;
const gistID = await github.CreateEmptyGIST(
Expand Down

0 comments on commit ea82fa5

Please sign in to comment.