Skip to content

Commit aa5933a

Browse files
committed
该睡了
1 parent 9e94951 commit aa5933a

File tree

9 files changed

+45
-39
lines changed

9 files changed

+45
-39
lines changed

client/out/languageserver.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/src/languageserver.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ export function activate(context: ExtensionContext) {
4343
}
4444
};
4545

46-
//let beta: boolean = workspace.getConfiguration("Lua.awakened").get("cat");
47-
let beta: boolean = false;
48-
let develop: boolean = workspace.getConfiguration("Lua.develop").get("enable");
49-
let debuggerPort: number = workspace.getConfiguration("Lua.develop").get("debuggerPort");
50-
let debuggerWait: boolean = workspace.getConfiguration("Lua.develop").get("debuggerWait");
46+
let beta: boolean = workspace.getConfiguration().get("Lua.zzzzzz.cat");
47+
//let beta: boolean = false;
48+
let develop: boolean = workspace.getConfiguration().get("Lua.develop.enable");
49+
let debuggerPort: number = workspace.getConfiguration().get("Lua.develop.debuggerPort");
50+
let debuggerWait: boolean = workspace.getConfiguration().get("Lua.develop.debuggerWait");
5151
let command: string;
5252
let platform: string = os.platform();
5353
switch (platform) {

package.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,8 @@
376376
"Lua.runtime.path": {
377377
"default": [
378378
"?.lua",
379-
"?\/init.lua",
380-
"?\/?.lua"
379+
"?/init.lua",
380+
"?/?.lua"
381381
],
382382
"items": {
383383
"type": "string"
@@ -444,6 +444,12 @@
444444
"markdownDescription": "%config.workspace.useGitIgnore%",
445445
"scope": "resource",
446446
"type": "boolean"
447+
},
448+
"Lua.zzzzzz.cat": {
449+
"default": false,
450+
"markdownDescription": "%config.zzzzzz.cat%",
451+
"scope": "resource",
452+
"type": "boolean"
447453
}
448454
},
449455
"title": "Lua",
@@ -452,7 +458,7 @@
452458
"grammars": [
453459
{
454460
"language": "lua",
455-
"path": ".\/syntaxes\/lua.tmLanguage.json",
461+
"path": "./syntaxes/lua.tmLanguage.json",
456462
"scopeName": "source.lua"
457463
}
458464
],
@@ -490,20 +496,20 @@
490496
"engines": {
491497
"vscode": "^1.23.0"
492498
},
493-
"icon": "images\/logo.png",
499+
"icon": "images/logo.png",
494500
"keywords": [
495501
"Lua",
496502
"LSP",
497503
"GoTo Definition",
498504
"IntelliSense"
499505
],
500506
"license": "MIT",
501-
"main": ".\/client\/out\/extension",
507+
"main": "./client/out/extension",
502508
"name": "lua",
503509
"publisher": "sumneko",
504510
"repository": {
505511
"type": "git",
506-
"url": "https:\/\/github.com\/sumneko\/lua-language-server"
512+
"url": "https://github.com/sumneko/lua-language-server"
507513
},
508514
"version": "0.20.2"
509515
}

package.nls.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"config.awakened.cat": "PLAY WITH ME >_<\u000a\u000a(This will enable the beta version which is still in development. Feedback is welcome! Reload the window after changing this option!)",
32
"config.color.mode": "Color mode.",
43
"config.color.mode.Grammar": "Grammar color.",
54
"config.color.mode.Semantic": "Semantic color (Testing. Your color theme must support semantic coloring to be effective.).",
@@ -15,21 +14,22 @@
1514
"config.develop.debuggerPort": "Listen port of debugger.",
1615
"config.develop.debuggerWait": "Suspend before debugger connects.",
1716
"config.develop.enable": "Developer mode. Do not enable, performance will be affected.",
18-
"config.diagnostics.disable": "Disabled diagnostic (Use code in hover brackets).\u000a```json\u000a\"Lua.diagnostics.disable\" : [\u000a \"unused-local\",\u000a \"lowercase-global\"\u000a]\u000a```\u000a",
17+
"config.diagnostics.disable": "Disabled diagnostic (Use code in hover brackets).\n```json\n\"Lua.diagnostics.disable\" : [\n \"unused-local\",\n \"lowercase-global\"\n]\n```\n",
1918
"config.diagnostics.enable": "Enable diagnostics.",
20-
"config.diagnostics.globals": "Defined global variables.\u000a```json\u000a\"Lua.diagnostics.globals\" : [\u000a \"GLOBAL1\",\u000a \"GLOBAL2\"\u000a]\u000a```\u000a",
21-
"config.diagnostics.severity": "Modified diagnostic severity.\u000a```json\u000a\"Lua.diagnostics.severity\" : {\u000a \"redefined-local\" : \"Warning\",\u000a \"emmy-lua\" : \"Hint\"\u000a}\u000a```\u000a",
19+
"config.diagnostics.globals": "Defined global variables.\n```json\n\"Lua.diagnostics.globals\" : [\n \"GLOBAL1\",\n \"GLOBAL2\"\n]\n```\n",
20+
"config.diagnostics.severity": "Modified diagnostic severity.\n```json\n\"Lua.diagnostics.severity\" : {\n \"redefined-local\" : \"Warning\",\n \"emmy-lua\" : \"Hint\"\n}\n```\n",
2221
"config.hover.enable": "Enable hover.",
2322
"config.hover.viewNumber": "Hover to view numeric content (only if literal is not decimal).",
2423
"config.hover.viewString": "Hover to view the contents of a string (only if the literal contains an escape character).",
2524
"config.hover.viewStringMax": "The maximum length of a hover to view the contents of a string.",
2625
"config.runtime.path": "`package.path`",
2726
"config.runtime.version": "Lua runtime version.",
2827
"config.signatureHelp.enable": "Enable signature help.",
29-
"config.workspace.ignoreDir": "Ignored directories (Use `.gitignore` grammar).\u000a```json\u000a\"Lua.workspace.ignoreDir\" : [\u000a \"temp\/*.*\",\u000a \"!temp\/*.lua\"\u000a]\u000a```\u000a",
28+
"config.workspace.ignoreDir": "Ignored directories (Use `.gitignore` grammar).\n```json\n\"Lua.workspace.ignoreDir\" : [\n \"temp/*.*\",\n \"!temp/*.lua\"\n]\n```\n",
3029
"config.workspace.ignoreSubmodules": "Ignore submodules.",
31-
"config.workspace.library": "Load external library.\u000aThis feature can load external Lua files, which can be used for definition, automatic completion and other functions. Note that the language server does not monitor changes in external files and needs to restart if the external files are modified.\u000aThe following example shows loaded files in `C:\/lua` and `..\/lib` ,exclude `..\/lib\/temp`.\u000a```json\u000a\"Lua.workspace.library\": {\u000a \"C:\/lua\": true,\u000a \"..\/lib\": [\u000a \"temp\/*\"\u000a ]\u000a}\u000a```\u000a",
30+
"config.workspace.library": "Load external library.\nThis feature can load external Lua files, which can be used for definition, automatic completion and other functions. Note that the language server does not monitor changes in external files and needs to restart if the external files are modified.\nThe following example shows loaded files in `C:/lua` and `../lib` ,exclude `../lib/temp`.\n```json\n\"Lua.workspace.library\": {\n \"C:/lua\": true,\n \"../lib\": [\n \"temp/*\"\n ]\n}\n```\n",
3231
"config.workspace.maxPreload": "Max preloaded files.",
3332
"config.workspace.preloadFileSize": "Skip files larger than this value (KB) when preloading.",
34-
"config.workspace.useGitIgnore": "Ignore files list in `.gitignore` ."
33+
"config.workspace.useGitIgnore": "Ignore files list in `.gitignore` .",
34+
"config.zzzzzz.cat": "DONT TOUCH ME, LET ME SLEEP >_<"
3535
}

package.nls.zh-cn.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"config.awakened.cat": "PLAY WITH ME >_<\u000a\u000a(这会启用还处于开发中的beta版,欢迎测试反馈!改变此选项需要重载窗口!)",
32
"config.color.mode": "着色模式。",
43
"config.color.mode.Grammar": "语法着色。",
54
"config.color.mode.Semantic": "语义着色(测试中。你的颜色主题必须要支持语义着色才有效。)。",
@@ -15,21 +14,22 @@
1514
"config.develop.debuggerPort": "调试器监听端口。",
1615
"config.develop.debuggerWait": "调试器连接之前挂起。",
1716
"config.develop.enable": "开发者模式。请勿开启,会影响性能。",
18-
"config.diagnostics.disable": "禁用的诊断(使用浮框括号内的代码)。\u000a```json\u000a\"Lua.diagnostics.disable\" : [\u000a \"unused-local\",\u000a \"lowercase-global\"\u000a]\u000a```\u000a",
17+
"config.diagnostics.disable": "禁用的诊断(使用浮框括号内的代码)。\n```json\n\"Lua.diagnostics.disable\" : [\n \"unused-local\",\n \"lowercase-global\"\n]\n```\n",
1918
"config.diagnostics.enable": "启用诊断。",
20-
"config.diagnostics.globals": "已定义的全局变量。\u000a```json\u000a\"Lua.diagnostics.globals\" : [\u000a \"GLOBAL1\",\u000a \"GLOBAL2\"\u000a]\u000a```\u000a",
21-
"config.diagnostics.severity": "修改诊断等级。\u000a```json\u000a\"Lua.diagnostics.severity\" : {\u000a \"redefined-local\" : \"Warning\",\u000a \"emmy-lua\" : \"Hint\"\u000a}\u000a```\u000a",
19+
"config.diagnostics.globals": "已定义的全局变量。\n```json\n\"Lua.diagnostics.globals\" : [\n \"GLOBAL1\",\n \"GLOBAL2\"\n]\n```\n",
20+
"config.diagnostics.severity": "修改诊断等级。\n```json\n\"Lua.diagnostics.severity\" : {\n \"redefined-local\" : \"Warning\",\n \"emmy-lua\" : \"Hint\"\n}\n```\n",
2221
"config.hover.enable": "启用悬停提示。",
2322
"config.hover.viewNumber": "悬停提示查看数字内容(仅当字面量不是十进制时)。",
2423
"config.hover.viewString": "悬停提示查看字符串内容(仅当字面量包含转义符时)。",
2524
"config.hover.viewStringMax": "悬停提示查看字符串内容时的最大长度。",
2625
"config.runtime.path": "`package.path`",
2726
"config.runtime.version": "Lua运行版本。",
2827
"config.signatureHelp.enable": "启用参数提示。",
29-
"config.workspace.ignoreDir": "忽略的目录(使用 `.gitignore` 语法)。\u000a```json\u000a\"Lua.workspace.ignoreDir\" : [\u000a \"temp\/*.*\",\u000a \"!temp\/*.lua\"\u000a]\u000a```\u000a",
28+
"config.workspace.ignoreDir": "忽略的目录(使用 `.gitignore` 语法)。\n```json\n\"Lua.workspace.ignoreDir\" : [\n \"temp/*.*\",\n \"!temp/*.lua\"\n]\n```\n",
3029
"config.workspace.ignoreSubmodules": "忽略子模块。",
31-
"config.workspace.library": "加载外部函数库。\u000a该功能可以加载外部的Lua文件,用于函数定义、自动完成等功能。注意,语言服务不会监视外部文件的变化,如果修改了外部文件需要重启。\u000a下面这个例子表示加载`C:\/lua`与`..\/lib`中的所有文件,但不加载`..\/lib\/temp`中的文件。\u000a```json\u000a\"Lua.workspace.library\": {\u000a \"C:\/lua\": true,\u000a \"..\/lib\": [\u000a \"temp\/*\"\u000a ]\u000a}\u000a```\u000a",
30+
"config.workspace.library": "加载外部函数库。\n该功能可以加载外部的Lua文件,用于函数定义、自动完成等功能。注意,语言服务不会监视外部文件的变化,如果修改了外部文件需要重启。\n下面这个例子表示加载`C:/lua`与`../lib`中的所有文件,但不加载`../lib/temp`中的文件。\n```json\n\"Lua.workspace.library\": {\n \"C:/lua\": true,\n \"../lib\": [\n \"temp/*\"\n ]\n}\n```\n",
3231
"config.workspace.maxPreload": "最大预加载文件数。",
3332
"config.workspace.preloadFileSize": "预加载时跳过大小大于该值(KB)的文件。",
34-
"config.workspace.useGitIgnore": "忽略 `.gitignore` 中列举的文件。"
33+
"config.workspace.useGitIgnore": "忽略 `.gitignore` 中列举的文件。",
34+
"config.zzzzzz.cat": "DONT TOUCH ME, LET ME SLEEP >_<"
3535
}

package/configuration.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,12 @@ local config = {
190190
-- default = ".vscode/lua-plugin/*.lua",
191191
-- markdownDescription = "%config.plugin.path%"
192192
--},
193-
--["Lua.awakened.cat"] = {
194-
-- scope = "resource",
195-
-- type = "boolean",
196-
-- default = false,
197-
-- markdownDescription = "%config.awakened.cat%"
198-
--},
193+
["Lua.zzzzzz.cat"] = {
194+
scope = "resource",
195+
type = "boolean",
196+
default = false,
197+
markdownDescription = "%config.zzzzzz.cat%"
198+
},
199199
["Lua.develop.enable"] = {
200200
scope = "resource",
201201
type = "boolean",

package/nls-zh-cn.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ return {
3434
['config.hover.viewString'] = "悬停提示查看字符串内容(仅当字面量包含转义符时)。",
3535
['config.hover.viewStringMax'] = "悬停提示查看字符串内容时的最大长度。",
3636
['config.hover.viewNumber'] = "悬停提示查看数字内容(仅当字面量不是十进制时)。",
37-
['config.awakened.cat'] = 'PLAY WITH ME >_<\n\n(这会启用还处于开发中的beta版,欢迎测试反馈!改变此选项需要重载窗口!)',
37+
['config.zzzzzz.cat'] = 'DONT TOUCH ME, LET ME SLEEP >_<',
3838
['config.develop.enable'] = '开发者模式。请勿开启,会影响性能。',
3939
['config.develop.debuggerPort'] = '调试器监听端口。',
4040
['config.develop.debuggerWait'] = '调试器连接之前挂起。',

package/nls.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The following example shows loaded files in `C:/lua` and `../lib` ,exclude `../l
3434
['config.hover.viewString'] = "Hover to view the contents of a string (only if the literal contains an escape character).",
3535
['config.hover.viewStringMax'] = "The maximum length of a hover to view the contents of a string.",
3636
['config.hover.viewNumber'] = "Hover to view numeric content (only if literal is not decimal).",
37-
['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!)',
37+
['config.zzzzzz.cat'] = 'DONT TOUCH ME, LET ME SLEEP >_<',
3838
['config.develop.enable'] = 'Developer mode. Do not enable, performance will be affected.',
3939
['config.develop.debuggerPort'] = 'Listen port of debugger.',
4040
['config.develop.debuggerWait'] = 'Suspend before debugger connects.',

server

0 commit comments

Comments
 (0)