为 instance 同步命令定义之间补空行并补齐文件末尾换行;将 game-settings-modal 的 languages.ts(Minecraft 语言名数据)加入 typos 排除,避免语言代码被误判为拼写错误。
This commit is contained in:
1 parent
4f220201b3
commit
f73bc89f84
2 files changed
+4
No files matched your search
@@ -14,6 +14,8 @@ extend-exclude = [
|
|||||||
"packages/app-lib/src/api/content_search/WikiEntries.txt",
|
"packages/app-lib/src/api/content_search/WikiEntries.txt",
|
||||||
# Bundled Monaco editor runtime contains upstream generated assets.
|
# Bundled Monaco editor runtime contains upstream generated assets.
|
||||||
"apps/app-frontend/public/monaco/",
|
"apps/app-frontend/public/monaco/",
|
||||||
|
# Minecraft language-name data (from mcmeta); contains language codes that look like typos.
|
||||||
|
"apps/app-frontend/src/components/ui/settings/instances/game-settings-modal/languages.ts",
|
||||||
]
|
]
|
||||||
|
|
||||||
[default.extend-words]
|
[default.extend-words]
|
||||||
|
|||||||
@@ -2087,6 +2087,7 @@ pub async fn instance_list_synced_servers()
|
|||||||
-> Result<Vec<theseus::instance::SyncedServer>> {
|
-> Result<Vec<theseus::instance::SyncedServer>> {
|
||||||
Ok(theseus::instance::list_synced_servers().await?)
|
Ok(theseus::instance::list_synced_servers().await?)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tauri::command]
|
#[tauri::command]
|
||||||
pub async fn instance_update_synced_server(
|
pub async fn instance_update_synced_server(
|
||||||
server: theseus::instance::SyncedServer,
|
server: theseus::instance::SyncedServer,
|
||||||
@@ -2094,6 +2095,7 @@ pub async fn instance_update_synced_server(
|
|||||||
theseus::instance::update_synced_server(server).await?;
|
theseus::instance::update_synced_server(server).await?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tauri::command]
|
#[tauri::command]
|
||||||
pub async fn instance_remove_synced_server(id: String) -> Result<()> {
|
pub async fn instance_remove_synced_server(id: String) -> Result<()> {
|
||||||
theseus::instance::remove_synced_server(&id).await?;
|
theseus::instance::remove_synced_server(&id).await?;
|
||||||
|
|||||||
Reference in new issue
Block a user