fix: misc issues

This commit is contained in:
Jannat Patel
2025-11-10 13:19:54 +05:30
parent fff9769791
commit 9447903d5b
7 changed files with 35 additions and 24 deletions

View File

@@ -107,7 +107,7 @@ async function setLanguageExtension() {
if (!languageImport) return
const module = await languageImport()
languageExtension.value = (module as any)[props.language]()
languageExtension.value = (module as any)[props.language]?.()
if (props.completions) {
const languageData = (module as any)[`${props.language}Language`]