dsh-vscode-mode 0.14.8 → 0.14.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -7
- package/lib/client.js +246 -4
- package/lib/client.js.map +1 -1
- package/lib/index.js +3 -6
- package/lib/index.js.map +1 -1
- package/package.json +12 -7
- package/src/client/editorModelState.ts +16 -0
- package/src/client/index.ts +9 -1
- package/src/client/monaco/editActions.ts +58 -0
- package/src/client/pageReload.ts +73 -0
- package/src/client/shortcutsOfficial.ts +14 -3
- package/src/client/state/uiStatePersist.ts +22 -0
- package/src/client/ui/EditorView.ts +25 -1
- package/src/client/ui/commandCatalog.ts +16 -0
- package/src/compat.ts +0 -9
- package/src/shared/keybindings.ts +16 -0
package/lib/index.js
CHANGED
|
@@ -1304,6 +1304,9 @@ async function refreshMcp(ctx, id) {
|
|
|
1304
1304
|
/** 命令 id → 默认键位(可为多候选)。命令目录以此为准,新增命令只需加一项。 */
|
|
1305
1305
|
const KEYBINDING_DEFAULTS = {
|
|
1306
1306
|
"edrv.save": "Ctrl+S",
|
|
1307
|
+
"edrv.toggleComment": "Ctrl+Alt+/",
|
|
1308
|
+
"edrv.duplicateLine": "",
|
|
1309
|
+
"edrv.reloadWindow": "",
|
|
1307
1310
|
"edrv.quickOpen": "Ctrl+P",
|
|
1308
1311
|
"edrv.toggleSidebar": "Ctrl+B",
|
|
1309
1312
|
"edrv.searchInFiles": "Ctrl+Shift+F",
|
|
@@ -3797,10 +3800,6 @@ function detectGuards(ctx) {
|
|
|
3797
3800
|
note: duplicates[0] ?? "唯一装配"
|
|
3798
3801
|
}];
|
|
3799
3802
|
}
|
|
3800
|
-
/** 已实测覆盖的最高 DSH 版本(适配矩阵上界,超过则提示,见 buildReport)。
|
|
3801
|
-
* 0.1.7-rc.2 已在官方已签名打包 Desktop 上实机装配(认证路由、同源 RPC、项目 MCP
|
|
3802
|
-
* 与私有打开队列均生效);更高版本仍按能力探测运行并提示。 */
|
|
3803
|
-
const TESTED_DSH_MAX = "0.1.7-rc.2";
|
|
3804
3803
|
/** Config volatile 标记起效的版本线(此前设置走 section 安装,与 volatile 无关)。 */
|
|
3805
3804
|
const CONFIG_VOLATILE_MIN = "0.1.7-alpha.1";
|
|
3806
3805
|
/** 版本适配机制状态行:DSH 版本探测 + 设置 section 安装策略 + Config volatile 标记。 */
|
|
@@ -3856,8 +3855,6 @@ async function buildReport(ctx, options) {
|
|
|
3856
3855
|
if (!deps) warnings.push("未安装 @deepseek-ai/dsh-settings:文件打开工具设置持久化不可用(降级为配置值)");
|
|
3857
3856
|
if (settingsInstallStrategy() === "none") warnings.push("设置 section 安装不可用:" + settingsInstallNote());
|
|
3858
3857
|
const parsed = parseDshVersion(dshVersion);
|
|
3859
|
-
const testedMax = parseDshVersion(TESTED_DSH_MAX);
|
|
3860
|
-
if (parsed && testedMax && compareDshVersions(parsed, testedMax) > 0) warnings.push("DSH " + dshVersion + " 高于已实测版本(0.1.7-rc.2):设置 API 按能力探测运行,异常时请回报适配矩阵");
|
|
3861
3858
|
const volatileState = configVolatileState();
|
|
3862
3859
|
const volatileMin = parseDshVersion(CONFIG_VOLATILE_MIN);
|
|
3863
3860
|
if (volatileState.requested && volatileState.marked < volatileState.total && parsed && volatileMin && compareDshVersions(parsed, volatileMin) >= 0) warnings.push("插件 Config volatile 标记不完整(" + volatileState.marked + "/" + volatileState.total + "):@deepseek-ai/schemastery 依赖过旧,0.1.7 设置页不可用(重装插件依赖后重启 DSH)");
|