From 3f524397038600f4250573ac6ac9dc6d5cf989bd Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Tue, 3 Nov 2026 17:42:42 +0800 Subject: [PATCH] chore(plugins): regenerate bindings and reconcile with main - Regenerated bindings for the merged settings, edits and plugin commands. - Mouse shortcuts run their action through `executeAction` again. - Dropped Chinese entries whose templates main already translates. --- crates/ide-host/src/ops/lsp.rs | 7 +++++-- src/platform/keymap.ts | 2 +- src/platform/locales/text/zh.json | 2 -- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/crates/ide-host/src/ops/lsp.rs b/crates/ide-host/src/ops/lsp.rs index 4e19ba134..f8b270634 100644 --- a/crates/ide-host/src/ops/lsp.rs +++ b/crates/ide-host/src/ops/lsp.rs @@ -331,8 +331,11 @@ pub async fn lsp_code_actions( } fn plugin_code_action(a: ide_plugin::CodeAction) -> CodeAction { - let files = - a.edits.into_iter().map(|(path, edits)| ide_core::FileEdit::Edit { path: path.into(), edits, version: None }).collect(); + let files = a + .edits + .into_iter() + .map(|(path, edits)| ide_core::FileEdit::Edit { path: path.into(), edits, version: None }) + .collect(); CodeAction { title: a.title, kind: a.kind, diff --git a/src/platform/keymap.ts b/src/platform/keymap.ts index 91bf254d9..f7d3f1617 100644 --- a/src/platform/keymap.ts +++ b/src/platform/keymap.ts @@ -11,7 +11,7 @@ * optionally with modifiers (`Alt+Button4`); they are single strokes. */ import { create } from "zustand"; -import { getAction, isActionKeyEnabled, executeActionFrom } from "./actions"; +import { executeAction, executeActionFrom, getAction, isActionKeyEnabled } from "./actions"; import { getContext } from "./context"; import { intellijMacos } from "./keymaps/intellij-macos"; import { intellijWindows } from "./keymaps/intellij-windows"; diff --git a/src/platform/locales/text/zh.json b/src/platform/locales/text/zh.json index 59cd5408d..6813a89bb 100644 --- a/src/platform/locales/text/zh.json +++ b/src/platform/locales/text/zh.json @@ -5726,7 +5726,6 @@ "Install Plugin from Package File…": "从插件包文件安装…", "Marketplace index URL": "插件市场索引 URL", "Refresh Marketplace": "刷新插件市场", - "Update to {version}": "更新到 {version}", "Marketplace": "插件市场", "Could not download plugin": "无法下载插件", "Rolled back {name} to {version}": "已将 {name} 回滚到 {version}", @@ -5747,7 +5746,6 @@ "Delete Row": "删除行", "No rows": "没有行", "Cell value": "单元格的值", - "{title}: {basename}": "{title}:{basename}", "Secrets": "密钥", "Stored": "已保存", "Not set": "未设置",