Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/cm/localWordCompletions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import {
completeAnyWord,
type CompletionSource,
} from "@codemirror/autocomplete";
import { EditorState, type Extension } from "@codemirror/state";

export const localWordCompletionSource: CompletionSource = completeAnyWord;

export default function localWordCompletions(): Extension {
return EditorState.languageData.of(() => [
{ autocomplete: localWordCompletionSource },
]);
}
4 changes: 3 additions & 1 deletion src/lang/ar-ye.json
Original file line number Diff line number Diff line change
Expand Up @@ -735,5 +735,7 @@
"settings-info-editor-show-share-button": "Show share button in selection menu.",
"iap-plugin-purchase-warning": "لا تتم مزامنة الإضافات المشتراة مع حساب Acode الخاص بك. استخدم نفس حساب Google في متجر Play لاستعادة عملية الشراء.",
"iap-pro-purchase-warning": "لن تتم مزامنة عملية الشراء هذه مع حساب Acode الخاص بك. استخدم نفس حساب Google في متجر Play لاستعادة عملية الشراء.",
"confirm-login": "لم تقم بتسجيل الدخول إلى Acode، هل تريد تسجيل الدخول الآن؟"
"confirm-login": "لم تقم بتسجيل الدخول إلى Acode، هل تريد تسجيل الدخول الآن؟",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
}
4 changes: 3 additions & 1 deletion src/lang/be-by.json
Original file line number Diff line number Diff line change
Expand Up @@ -735,5 +735,7 @@
"settings-info-editor-show-share-button": "Show share button in selection menu.",
"iap-plugin-purchase-warning": "Набытыя плагіны не сінхранізуюцца з вашым уліковым запісам Acode. Выкарыстоўвайце той жа ўліковы запіс Google у Play Store для аднаўлення пакупкі.",
"iap-pro-purchase-warning": "Гэтая пакупка не будзе сінхранізавана з вашым уліковым запісам Acode. Выкарыстоўвайце той жа ўліковы запіс Google у Play Store для аднаўлення пакупкі.",
"confirm-login": "Вы не ўвайшлі ў Acode, увайсці зараз?"
"confirm-login": "Вы не ўвайшлі ў Acode, увайсці зараз?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
}
4 changes: 3 additions & 1 deletion src/lang/bn-bd.json
Original file line number Diff line number Diff line change
Expand Up @@ -735,5 +735,7 @@
"settings-info-editor-show-share-button": "Show share button in selection menu.",
"iap-plugin-purchase-warning": "ক্রয়কৃত প্লাগইনগুলি আপনার Acode অ্যাকাউন্টের সাথে সিঙ্ক হয় না। আপনার ক্রয় পুনরুদ্ধার করতে প্লে স্টোরে একই Google অ্যাকাউন্ট ব্যবহার করুন।",
"iap-pro-purchase-warning": "এই ক্রয়টি আপনার Acode অ্যাকাউন্টের সাথে সিঙ্ক হবে না। আপনার ক্রয় পুনরুদ্ধার করতে প্লে স্টোরে একই Google অ্যাকাউন্ট ব্যবহার করুন।",
"confirm-login": "আপনি Acode-এ সাইন ইন করেননি, এখন সাইন ইন করবেন?"
"confirm-login": "আপনি Acode-এ সাইন ইন করেননি, এখন সাইন ইন করবেন?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
}
4 changes: 3 additions & 1 deletion src/lang/cs-cz.json
Original file line number Diff line number Diff line change
Expand Up @@ -735,5 +735,7 @@
"settings-info-editor-show-share-button": "Show share button in selection menu.",
"iap-plugin-purchase-warning": "Zakoupené pluginy nejsou synchronizovány s vaším účtem Acode. Pro obnovení nákupu použijte stejný účet Google v Obchodě Play.",
"iap-pro-purchase-warning": "Tento nákup nebude synchronizován s vaším účtem Acode. Pro obnovení nákupu použijte stejný účet Google v Obchodě Play.",
"confirm-login": "Nejste přihlášeni do Acode, přihlásit se nyní?"
"confirm-login": "Nejste přihlášeni do Acode, přihlásit se nyní?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
}
4 changes: 3 additions & 1 deletion src/lang/de-de.json
Original file line number Diff line number Diff line change
Expand Up @@ -735,5 +735,7 @@
"settings-info-editor-show-share-button": "Show share button in selection menu.",
"iap-plugin-purchase-warning": "Gekaufte Plugins werden nicht mit Ihrem Acode-Konto synchronisiert. Verwenden Sie dasselbe Google-Konto im Play Store, um Ihren Kauf wiederherzustellen.",
"iap-pro-purchase-warning": "Dieser Kauf wird nicht mit Ihrem Acode-Konto synchronisiert. Verwenden Sie dasselbe Google-Konto im Play Store, um Ihren Kauf wiederherzustellen.",
"confirm-login": "Sie sind nicht bei Acode angemeldet, jetzt anmelden?"
"confirm-login": "Sie sind nicht bei Acode angemeldet, jetzt anmelden?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
}
2 changes: 2 additions & 0 deletions src/lang/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
"invalid backup file": "Invalid backup file",
"add path": "Add path",
"live autocompletion": "Live autocompletion",
"local word completion": "Local word completion",
"auto close tags": "Auto close tags",
"file properties": "File properties",
"path": "Path",
Expand Down Expand Up @@ -667,6 +668,7 @@
"settings-info-editor-line-numbers": "Show line numbers in the gutter.",
"settings-info-editor-lint-gutter": "Show diagnostics and lint markers in the gutter.",
"settings-info-editor-live-autocomplete": "Show suggestions while you type.",
"settings-info-editor-local-word-completion": "Suggest words from the current file.",
"settings-info-editor-auto-close-tags": "Automatically insert closing tags in HTML, XML, Vue, Angular, and PHP template files.",
"settings-info-editor-rainbow-brackets": "Color matching brackets by nesting depth.",
"settings-info-editor-relative-line-numbers": "Show distance from the current line.",
Expand Down
4 changes: 3 additions & 1 deletion src/lang/es-sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -735,5 +735,7 @@
"settings-info-editor-show-share-button": "Show share button in selection menu.",
"iap-plugin-purchase-warning": "Los plugins comprados no se sincronizan con tu cuenta de Acode. Usa la misma cuenta de Google en Play Store para restaurar tu compra.",
"iap-pro-purchase-warning": "Esta compra no se sincronizará con tu cuenta de Acode. Usa la misma cuenta de Google en Play Store para restaurar tu compra.",
"confirm-login": "No has iniciado sesión en Acode, ¿iniciar sesión ahora?"
"confirm-login": "No has iniciado sesión en Acode, ¿iniciar sesión ahora?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
}
4 changes: 3 additions & 1 deletion src/lang/fr-fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -735,5 +735,7 @@
"settings-info-editor-show-share-button": "Show share button in selection menu.",
"iap-plugin-purchase-warning": "Les plugins achetés ne sont pas synchronisés avec votre compte Acode. Utilisez le même compte Google dans le Play Store pour restaurer votre achat.",
"iap-pro-purchase-warning": "Cet achat ne sera pas synchronisé avec votre compte Acode. Utilisez le même compte Google dans le Play Store pour restaurer votre achat.",
"confirm-login": "Vous n'êtes pas connecté à Acode, vous connecter maintenant ?"
"confirm-login": "Vous n'êtes pas connecté à Acode, vous connecter maintenant ?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
}
4 changes: 3 additions & 1 deletion src/lang/he-il.json
Original file line number Diff line number Diff line change
Expand Up @@ -735,5 +735,7 @@
"settings-info-editor-show-share-button": "Show share button in selection menu.",
"iap-plugin-purchase-warning": "תוספים שנרכשו אינם מסונכרנים עם חשבון Acode שלך. השתמש באותו חשבון Google בחנות Play כדי לשחזר את הרכישה שלך.",
"iap-pro-purchase-warning": "רכישה זו לא תסונכרן עם חשבון Acode שלך. השתמש באותו חשבון Google בחנות Play כדי לשחזר את הרכישה שלך.",
"confirm-login": "אינך מחובר ל-Acode, להתחבר עכשיו?"
"confirm-login": "אינך מחובר ל-Acode, להתחבר עכשיו?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
}
4 changes: 3 additions & 1 deletion src/lang/hi-in.json
Original file line number Diff line number Diff line change
Expand Up @@ -735,5 +735,7 @@
"settings-info-editor-show-share-button": "सेलेक्शन मेनू में शेयर बटन दिखाएं।",
"iap-plugin-purchase-warning": "खरीदे गए प्लगइन आपके Acode खाते से सिंक नहीं होते हैं। अपनी खरीदारी पुनर्स्थापित करने के लिए Play Store में उसी Google खाते का उपयोग करें।",
"iap-pro-purchase-warning": "यह खरीदारी आपके Acode खाते से सिंक नहीं होगी। अपनी खरीदारी पुनर्स्थापित करने के लिए Play Store में उसी Google खाते का उपयोग करें।",
"confirm-login": "आप Acode में साइन इन नहीं हैं, अभी साइन इन करें?"
"confirm-login": "आप Acode में साइन इन नहीं हैं, अभी साइन इन करें?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
}
4 changes: 3 additions & 1 deletion src/lang/hu-hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -735,5 +735,7 @@
"settings-info-editor-show-share-button": "Megjeleníti a megosztásgombot a kiválasztásmenüben.",
"iap-plugin-purchase-warning": "A megvásárolt bővítmények nem szinkronizálódnak az Acode-fiókjával. Használja ugyanazt a Google-fiókot a Play Áruházban a vásárlás visszaállításához.",
"iap-pro-purchase-warning": "Ez a vásárlás nem lesz szinkronizálva az Acode-fiókjával. Használja ugyanazt a Google-fiókot a Play Áruházban a vásárlás visszaállításához.",
"confirm-login": "Nincs bejelentkezve az Acode-ba, bejelentkezik most?"
"confirm-login": "Nincs bejelentkezve az Acode-ba, bejelentkezik most?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
}
4 changes: 3 additions & 1 deletion src/lang/id-id.json
Original file line number Diff line number Diff line change
Expand Up @@ -735,5 +735,7 @@
"login-to-view": "Mohon login untuk melihat ini...",
"iap-plugin-purchase-warning": "Plugin yang dibeli tidak disinkronkan ke akun Acode Anda. Gunakan akun Google yang sama di Play Store untuk memulihkan pembelian Anda.",
"iap-pro-purchase-warning": "Pembelian ini tidak akan disinkronkan ke akun Acode Anda. Gunakan akun Google yang sama di Play Store untuk memulihkan pembelian Anda.",
"confirm-login": "Anda belum masuk ke Acode, masuk sekarang?"
"confirm-login": "Anda belum masuk ke Acode, masuk sekarang?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
}
4 changes: 4 additions & 0 deletions src/lang/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ declare type LangStrings = {
"settings saved": string;
"show line numbers": string;
"show hidden files": string;
"show share button": string;
"show spaces": string;
"soft tab": string;
"sort by name": string;
Expand Down Expand Up @@ -134,6 +135,7 @@ declare type LangStrings = {
"invalid backup file": string;
"add path": string;
"live autocompletion": string;
"local word completion": string;
"auto close tags": string;
"file properties": string;
"path": string;
Expand Down Expand Up @@ -669,12 +671,14 @@ declare type LangStrings = {
"settings-info-editor-line-numbers": string;
"settings-info-editor-lint-gutter": string;
"settings-info-editor-live-autocomplete": string;
"settings-info-editor-local-word-completion": string;
"settings-info-editor-auto-close-tags": string;
"settings-info-editor-rainbow-brackets": string;
"settings-info-editor-relative-line-numbers": string;
"settings-info-editor-rtl-text": string;
"settings-info-editor-scroll-settings": string;
"settings-info-editor-shift-click-selection": string;
"settings-info-editor-show-share-button": string;
"settings-info-editor-show-spaces": string;
"settings-info-editor-soft-tab": string;
"settings-info-editor-tab-size": string;
Expand Down
4 changes: 3 additions & 1 deletion src/lang/ir-fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -735,5 +735,7 @@
"settings-info-editor-show-share-button": "Show share button in selection menu.",
"iap-plugin-purchase-warning": "افزونه‌های خریداری شده با حساب Acode شما همگام‌سازی نمی‌شوند. برای بازیابی خرید خود از همان حساب Google در فروشگاه Play استفاده کنید.",
"iap-pro-purchase-warning": "این خرید با حساب Acode شما همگام‌سازی نخواهد شد. برای بازیابی خرید خود از همان حساب Google در فروشگاه Play استفاده کنید.",
"confirm-login": "شما وارد Acode نشده‌اید، اکنون وارد شوید؟"
"confirm-login": "شما وارد Acode نشده‌اید، اکنون وارد شوید؟",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
}
4 changes: 3 additions & 1 deletion src/lang/it-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -735,5 +735,7 @@
"settings-info-editor-show-share-button": "Show share button in selection menu.",
"iap-plugin-purchase-warning": "I plugin acquistati non vengono sincronizzati con il tuo account Acode. Usa lo stesso account Google nel Play Store per ripristinare l'acquisto.",
"iap-pro-purchase-warning": "Questo acquisto non verrà sincronizzato con il tuo account Acode. Usa lo stesso account Google nel Play Store per ripristinare l'acquisto.",
"confirm-login": "Non hai effettuato l'accesso ad Acode, accedere ora?"
"confirm-login": "Non hai effettuato l'accesso ad Acode, accedere ora?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
}
4 changes: 3 additions & 1 deletion src/lang/ja-jp.json
Original file line number Diff line number Diff line change
Expand Up @@ -735,5 +735,7 @@
"settings-info-editor-show-share-button": "Show share button in selection menu.",
"iap-plugin-purchase-warning": "購入したプラグインはAcodeアカウントと同期されません。購入を復元するには、Playストアで同じGoogleアカウントを使用してください。",
"iap-pro-purchase-warning": "この購入はAcodeアカウントと同期されません。購入を復元するには、Playストアで同じGoogleアカウントを使用してください。",
"confirm-login": "Acodeにサインインしていません。今すぐサインインしますか?"
"confirm-login": "Acodeにサインインしていません。今すぐサインインしますか?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
}
4 changes: 3 additions & 1 deletion src/lang/ko-kr.json
Original file line number Diff line number Diff line change
Expand Up @@ -735,5 +735,7 @@
"settings-info-editor-show-share-button": "Show share button in selection menu.",
"iap-plugin-purchase-warning": "구매한 플러그인은 Acode 계정과 동기화되지 않습니다. 구매를 복원하려면 Play 스토어에서 동일한 Google 계정을 사용하세요.",
"iap-pro-purchase-warning": "이 구매는 Acode 계정과 동기화되지 않습니다. 구매를 복원하려면 Play 스토어에서 동일한 Google 계정을 사용하세요.",
"confirm-login": "Acode에 로그인되어 있지 않습니다. 지금 로그인하시겠습니까?"
"confirm-login": "Acode에 로그인되어 있지 않습니다. 지금 로그인하시겠습니까?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
}
4 changes: 3 additions & 1 deletion src/lang/ml-in.json
Original file line number Diff line number Diff line change
Expand Up @@ -735,5 +735,7 @@
"settings-info-editor-show-share-button": "Show share button in selection menu.",
"iap-plugin-purchase-warning": "വാങ്ങിയ പ്ലഗിനുകൾ നിങ്ങളുടെ Acode അക്കൗണ്ടുമായി സമന്വയിപ്പിക്കില്ല. നിങ്ങളുടെ വാങ്ങൽ പുനഃസ്ഥാപിക്കാൻ Play Store-ൽ അതേ Google അക്കൗണ്ട് ഉപയോഗിക്കുക.",
"iap-pro-purchase-warning": "ഈ വാങ്ങൽ നിങ്ങളുടെ Acode അക്കൗണ്ടുമായി സമന്വയിപ്പിക്കില്ല. നിങ്ങളുടെ വാങ്ങൽ പുനഃസ്ഥാപിക്കാൻ Play Store-ൽ അതേ Google അക്കൗണ്ട് ഉപയോഗിക്കുക.",
"confirm-login": "നിങ്ങൾ Acode-ൽ സൈൻ ഇൻ ചെയ്തിട്ടില്ല, ഇപ്പോൾ സൈൻ ഇൻ ചെയ്യണോ?"
"confirm-login": "നിങ്ങൾ Acode-ൽ സൈൻ ഇൻ ചെയ്തിട്ടില്ല, ഇപ്പോൾ സൈൻ ഇൻ ചെയ്യണോ?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
}
4 changes: 3 additions & 1 deletion src/lang/mm-unicode.json
Original file line number Diff line number Diff line change
Expand Up @@ -735,5 +735,7 @@
"settings-info-editor-show-share-button": "Show share button in selection menu.",
"iap-plugin-purchase-warning": "ဝယ်ယူထားသော ပလပ်အင်များသည် သင့် Acode အကောင့်နှင့် ထပ်တူပြု၍မရပါ။ သင့်ဝယ်ယူမှုကို ပြန်လည်ရယူရန် Play Store တွင် တူညီသော Google အကောင့်ကို အသုံးပြုပါ။",
"iap-pro-purchase-warning": "ဤဝယ်ယူမှုသည် သင့် Acode အကောင့်နှင့် ထပ်တူပြုမည်မဟုတ်ပါ။ သင့်ဝယ်ယူမှုကို ပြန်လည်ရယူရန် Play Store တွင် တူညီသော Google အကောင့်ကို အသုံးပြုပါ။",
"confirm-login": "သင်သည် Acode သို့ အကောင့်ဝင်ထားခြင်းမရှိပါ၊ ယခု အကောင့်ဝင်မလား။"
"confirm-login": "သင်သည် Acode သို့ အကောင့်ဝင်ထားခြင်းမရှိပါ၊ ယခု အကောင့်ဝင်မလား။",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
}
4 changes: 3 additions & 1 deletion src/lang/mm-zawgyi.json
Original file line number Diff line number Diff line change
Expand Up @@ -735,5 +735,7 @@
"settings-info-editor-show-share-button": "Show share button in selection menu.",
"iap-plugin-purchase-warning": "ဝယ္ယူထားေသာ ပလပ္အင္မ်ားသည္ သင့္ Acode အေကာင့္ႏွင့္ ထပ္တူျပဳ၍မရပါ။ သင့္ဝယ္ယူမႈကို ျပန္လည္ရယူရန္ Play Store တြင္ တူညီေသာ Google အေကာင့္ကို အသုံးျပဳပါ။",
"iap-pro-purchase-warning": "ဤဝယ္ယူမႈသည္ သင့္ Acode အေကာင့္ႏွင့္ ထပ္တူျပဳမည္မဟုတ္ပါ။ သင့္ဝယ္ယူမႈကို ျပန္လည္ရယူရန္ Play Store တြင္ တူညီေသာ Google အေကာင့္ကို အသုံးျပဳပါ။",
"confirm-login": "သင္သည္ Acode သို႔ အေကာင့္ဝင္ထားျခင္းမရွိပါ၊ ယခု အေကာင့္ဝင္မလား။"
"confirm-login": "သင္သည္ Acode သို႔ အေကာင့္ဝင္ထားျခင္းမရွိပါ၊ ယခု အေကာင့္ဝင္မလား။",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
}
Loading