Skip to content

Commit 62eb453

Browse files
committed
支持悬停提示的配置
1 parent eafd983 commit 62eb453

File tree

4 files changed

+32
-2
lines changed

4 files changed

+32
-2
lines changed

package/configuration.lua

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,30 @@ local config = {
154154
default = true,
155155
markdownDescription = "%config.signatureHelp.enable%"
156156
},
157+
['Lua.hover.enable'] = {
158+
scope = "resource",
159+
type = "boolean",
160+
default = true,
161+
markdownDescription = "%config.hover.enable%"
162+
},
163+
['Lua.hover.viewString'] = {
164+
scope = "resource",
165+
type = "boolean",
166+
default = true,
167+
markdownDescription = "%config.hover.viewString%"
168+
},
169+
['Lua.hover.viewStringMax'] = {
170+
scope = "resource",
171+
type = "integer",
172+
default = 1000,
173+
markdownDescription = "%config.hover.viewStringMax%"
174+
},
175+
['Lua.hover.viewNumber'] = {
176+
scope = "resource",
177+
type = "boolean",
178+
default = true,
179+
markdownDescription = "%config.hover.viewNumber%"
180+
},
157181
--["Lua.plugin.enable"] = {
158182
-- scope = "resource",
159183
-- type = "boolean",

package/nls-zh-cn.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ return {
2929
['config.color.mode'] = "着色模式。",
3030
['config.color.mode.Semantic'] = "语义着色(测试中。你的颜色主题必须要支持语义着色才有效。)。",
3131
['config.color.mode.Grammar'] = "语法着色。",
32-
['config.signatureHelp.enable'] = "启用参数提示",
32+
['config.signatureHelp.enable'] = "启用参数提示。",
33+
['config.hover.enable'] = "启用悬停提示。",
34+
['config.hover.viewString'] = "悬停提示查看字符串内容(仅当字面量包含转义符时)。",
35+
['config.hover.viewNumber'] = "悬停提示查看数字内容(仅当字面量不是十进制时)。",
3336
['config.awakened.cat'] = 'PLAY WITH ME >_<\n\n(这会启用还处于开发中的beta版,欢迎测试反馈!改变此选项需要重载窗口!)',
3437
['config.develop.enable'] = '开发者模式。请勿开启,会影响性能。',
3538
['config.develop.debuggerPort'] = '调试器监听端口。',

package/nls.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ The following example shows loaded files in `C:/lua` and `../lib` ,exclude `../l
3030
['config.color.mode.Semantic'] = "Semantic color (Testing. Your color theme must support semantic coloring to be effective.).",
3131
['config.color.mode.Grammar'] = "Grammar color.",
3232
['config.signatureHelp.enable'] = "Enable signature help.",
33+
['config.hover.enable'] = "Enable hover.",
34+
['config.hover.viewString'] = "Hover to view the contents of a string (only if the literal contains an escape character).",
35+
['config.hover.viewNumber'] = "Hover to view numeric content (only if literal is not decimal).",
3336
['config.awakened.cat'] = 'PLAY WITH ME >_<\n\n(This will enable the beta version which is still in development. Feedback is welcome! Reload the window after changing this option!)',
3437
['config.develop.enable'] = 'Developer mode. Do not enable, performance will be affected.',
3538
['config.develop.debuggerPort'] = 'Listen port of debugger.',

server

0 commit comments

Comments
 (0)