From a2a5505a68e5ecf9ad62d1a697740a3aa253067a Mon Sep 17 00:00:00 2001 From: abgox Date: Wed, 12 Jun 2024 09:47:38 +0800 Subject: [PATCH] feat(completions): update psc --- completions/psc/guid.txt | 2 +- completions/psc/language/en-US.json | 18 +++++++++++++++++- completions/psc/language/zh-CN.json | 18 +++++++++++++++++- 3 files changed, 35 insertions(+), 3 deletions(-) diff --git a/completions/psc/guid.txt b/completions/psc/guid.txt index b9a0335..361cf7b 100644 --- a/completions/psc/guid.txt +++ b/completions/psc/guid.txt @@ -1 +1 @@ -027b00d9-bc4b-47ed-a29b-085afb548bf0 +e7066493-00cf-41e5-bf10-acaa490bfbf6 diff --git a/completions/psc/language/en-US.json b/completions/psc/language/en-US.json index b388559..60ae834 100644 --- a/completions/psc/language/en-US.json +++ b/completions/psc/language/en-US.json @@ -1962,5 +1962,21 @@ ] } } - } + }, + "config": [ + { + "name": "disable_hooks", + "value": 0, + "values": [ + 1, + 0 + ], + "tip": [ + "Set whether to disable hooks. Default to 0.\n", + "The psc hooks are used to get the name of the installed completions, completions that can be added, etc. and then dynamically add them to some completions. (e.g. <@Magenta>add<@Blue>, <@Magenta>rm<@Blue>, <@Magenta>update<@Blue>, <@Magenta>completion<@Blue>, <@Magenta>alias<@Blue>, etc.)\n", + "For example, enter <@Magenta>psc rm<@Blue>, press <@Magenta>Space<@Blue> and <@Magenta>Tab<@Blue> key, and you can get some extra completions about the name of the installed completions.\n", + "You can disable hooks by running <@Magenta>psc completion psc disable_hooks 1<@Blue>." + ] + } + ] } diff --git a/completions/psc/language/zh-CN.json b/completions/psc/language/zh-CN.json index c8b9697..755255c 100644 --- a/completions/psc/language/zh-CN.json +++ b/completions/psc/language/zh-CN.json @@ -1964,5 +1964,21 @@ ] } } - } + }, + "config": [ + { + "name": "disable_hooks", + "value": 0, + "values": [ + 1, + 0 + ], + "tip": [ + "设置是否禁用 hooks,默认为 0 表示不禁用\n", + "psc 中的 hooks 主要用于获取已添加的补全名称、可添加的补全名称等, 然后动态添加到一些命令补全中(如 <@Magenta>add<@Blue>, <@Magenta>rm<@Blue>, <@Magenta>update<@Blue>, <@Magenta>completion<@Blue>, <@Magenta>alias<@Blue> 等)\n", + "如: 输入 <@Magenta>psc rm<@Blue> 后按下 <@Magenta>Space<@Blue>(空格) 和 <@Magenta>Tab<@Blue> 键可以获取已添加的补全名称的补全\n", + "你可以通过运行 <@Magenta>psc completion psc disable_hooks 1<@Blue> 来禁用 hooks" + ] + } + ] }