Skip to content

Commit e95c84a

Browse files
committed
build configuration
1 parent 2db6b9e commit e95c84a

File tree

6 files changed

+137
-53
lines changed

6 files changed

+137
-53
lines changed

package.nls.zh-tw.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
"config.color.mode": "著色模式。",
77
"config.color.mode.Grammar": "語法著色。",
88
"config.color.mode.Semantic": "語義著色。你可能需要同時將 `editor.semanticHighlighting.enabled` 設定為 `true` 才能生效。",
9-
"config.color.mode.SemanticEnhanced": "增強的語義顏色。 類似於`Semantic`,但會進行額外的分析(也會帶來額外的開銷)。",
9+
"config.color.mode.SemanticEnhanced": "增強的語義顏色。類似於`Semantic`,但會進行額外的分析(也會帶來額外的開銷)。",
1010
"config.completion.autoRequire": "輸入內容看起來是個檔名時,自動 `require` 此檔案。",
1111
"config.completion.callSnippet": "顯示函式呼叫片段。",
1212
"config.completion.callSnippet.Both": "顯示 `函式名` 與 `呼叫片段`。",
1313
"config.completion.callSnippet.Disable": "只顯示 `函式名`。",
1414
"config.completion.callSnippet.Replace": "只顯示 `呼叫片段`。",
15-
"config.completion.displayContext": "預覽建議的相關程式碼片段,可能可以幫助你瞭解這項建議的用法。設定的數字表示程式碼片段的擷取行數,設定為`0`可以停用此功能。",
15+
"config.completion.displayContext": "預覽建議的相關程式碼片段,可能可以幫助你瞭解這項建議的用法。設定的數字表示程式碼片段的擷取行數,設定為 `0` 可以停用此功能。",
1616
"config.completion.enable": "啟用自動完成。",
17-
"config.completion.keywordSnippet": "顯示關鍵字語法片段",
17+
"config.completion.keywordSnippet": "顯示關鍵字語法片段",
1818
"config.completion.keywordSnippet.Both": "顯示 `關鍵字` 與 `語法片段`。",
1919
"config.completion.keywordSnippet.Disable": "只顯示 `關鍵字`。",
2020
"config.completion.keywordSnippet.Replace": "只顯示 `語法片段`。",
@@ -29,9 +29,9 @@
2929
"config.develop.debuggerPort": "除錯器監聽埠。",
3030
"config.develop.debuggerWait": "除錯器連接之前懸置。",
3131
"config.develop.enable": "開發者模式。請勿開啟,會影響效能。",
32-
"config.diagnostics.ambiguity-1": "優先級歧義,如:`num or 0 + 1`,推測使用者的實際期望為 `(num or 0) + 1` ",
32+
"config.diagnostics.ambiguity-1": "優先級歧義,如: `num or 0 + 1` ,推測使用者的實際期望為 `(num or 0) + 1`",
3333
"config.diagnostics.disable": "停用的診斷(使用浮框括號內的程式碼)。",
34-
"config.diagnostics.disableScheme": "不诊断使用以下 scheme 的lua文件",
34+
"config.diagnostics.disableScheme": "不診斷使用以下 scheme 的lua檔案",
3535
"config.diagnostics.duplicate-index": "在字面常數表中重複定義了索引",
3636
"config.diagnostics.empty-block": "空程式碼區塊",
3737
"config.diagnostics.enable": "啟用診斷。",
@@ -47,7 +47,7 @@
4747
"config.diagnostics.newfield-call": "在字面常數表中,2行程式碼之間缺少分隔符,在語法上被解析為了一次索引操作",
4848
"config.diagnostics.newline-call": "以 `(` 開始的新行,在語法上被解析為了上一行的函式呼叫",
4949
"config.diagnostics.redefined-local": "重複定義的區域變數",
50-
"config.diagnostics.redundant-parameter": "函式呼叫時,傳入了多餘的參數",
50+
"config.diagnostics.redundant-parameter": "函式呼叫時,傳入了多餘的引數",
5151
"config.diagnostics.redundant-value": "賦值操作時,值的數量比被賦值的對象多",
5252
"config.diagnostics.severity": "修改診斷等級。",
5353
"config.diagnostics.trailing-space": "後置空格",
@@ -56,55 +56,55 @@
5656
"config.diagnostics.unused-function": "未使用的函式",
5757
"config.diagnostics.unused-label": "未使用的標籤",
5858
"config.diagnostics.unused-local": "未使用的區域變數",
59-
"config.diagnostics.unused-vararg": "未使用的不定參數",
60-
"config.diagnostics.workspaceDelay": "進行工作區診斷的延遲(毫秒)。當你啟動工作區,或編輯了任意檔案後,將會在後台對整個工作區進行重新診斷。設定為負數可以停用工作區診斷。",
59+
"config.diagnostics.unused-vararg": "未使用的不定引數",
60+
"config.diagnostics.workspaceDelay": "進行工作區診斷的延遲(毫秒)。當你啟動工作區,或編輯了任意檔案後,將會在背景對整個工作區進行重新診斷。設定為負數可以停用工作區診斷。",
6161
"config.diagnostics.workspaceRate": "工作區診斷的執行速率(百分比)。降低該值會減少CPU佔用,但是也會降低工作區診斷的速度。你目前正在編輯的檔案的診斷總是全速完成,不受該選項影響。",
6262
"config.format.enable": "啟用程式碼格式化程式。",
6363
"config.hint.arrayIndex": "在建構表時提示陣列索引。",
64-
"config.hint.arrayIndex.Auto": "只有表大於3項,或者表是混合類型時才進行提示",
64+
"config.hint.arrayIndex.Auto": "只有表大於3項,或者表是混合型別時才進行提示",
6565
"config.hint.arrayIndex.Disable": "停用陣列索引提示。",
6666
"config.hint.arrayIndex.Enable": "所有的表中都提示陣列索引。",
6767
"config.hint.enable": "啟用內嵌提示。",
6868
"config.hint.paramName": "在函式呼叫處提示參數名。",
69-
"config.hint.paramName.All": "所有類型的參數均進行提示",
69+
"config.hint.paramName.All": "所有型別的參數均進行提示",
7070
"config.hint.paramName.Disable": "停用參數提示。",
71-
"config.hint.paramName.Literal": "只有字面常數類型的參數進行提示",
72-
"config.hint.paramType": "在函式的參數位置提示類型",
73-
"config.hint.setType": "在賦值操作位置提示類型",
71+
"config.hint.paramName.Literal": "只有字面常數型別的參數進行提示",
72+
"config.hint.paramType": "在函式的參數位置提示型別",
73+
"config.hint.setType": "在賦值操作位置提示型別",
7474
"config.hover.enable": "啟用懸浮提示。",
75-
"config.hover.enumsLimit": "當值對應多個類型時,限制類型的顯示數量",
76-
"config.hover.fieldInfer": "懸浮提示查看表時,會對表的每個欄位進行類型推測,當類型推測的用時累計達到該設定值(毫秒)時,將跳過後續欄位的類型推測",
77-
"config.hover.previewFields": "懸浮提示查看表時,限制表內欄位的最大預覽數量。",
78-
"config.hover.viewNumber": "懸浮提示查看數字內容(僅當字面常數不是十進制時)。",
79-
"config.hover.viewString": "懸浮提示查看字串內容(僅當字面常數包含跳脫字元時)。",
80-
"config.hover.viewStringMax": "懸浮提示查看字串內容時的最大長度",
81-
"config.intelliSense.fastGlobal": "在對全域變數進行補全,及查看 `_G` 的懸浮提示時進行最佳化。這會略微降低類型推測的準確度,但是對於大量使用全域變數的專案會有大幅的效能提升。",
75+
"config.hover.enumsLimit": "當值對應多個型別時,限制型別的顯示數量",
76+
"config.hover.fieldInfer": "懸浮提示檢視表時,會對表的每個欄位進行型別推測,當型別推測的用時累計達到該設定值(毫秒)時,將跳過後續欄位的型別推測",
77+
"config.hover.previewFields": "懸浮提示檢視表時,限制表內欄位的最大預覽數量。",
78+
"config.hover.viewNumber": "懸浮提示檢視數字內容(僅當字面常數不是十進制時)。",
79+
"config.hover.viewString": "懸浮提示檢視字串內容(僅當字面常數包含跳脫字元時)。",
80+
"config.hover.viewStringMax": "懸浮提示檢視字串內容時的最大長度",
81+
"config.intelliSense.fastGlobal": "在對全域變數進行補全,及檢視 `_G` 的懸浮提示時進行最佳化。這會略微降低型別推測的準確度,但是對於大量使用全域變數的專案會有大幅的效能提升。",
8282
"config.intelliSense.searchDepth": "設定智慧感知的搜尋深度。增大該值可以增加準確度,但會降低效能。不同的工作區對該設定的容忍度差異較大,請自己調整為合適的值。",
8383
"config.misc.parameters": "VSCode中啟動語言服務時的[命令列參數](https://github.com/sumneko/lua-language-server/wiki/Command-line)。",
8484
"config.runtime.builtin": "調整內建庫的啟用狀態,你可以根據實際執行環境停用不存在的庫(或重新定義)。\n\n* `default`: 表示庫會根據執行版本啟用或停用\n* `enable`: 總是啟用\n* `disable`: 總是停用\n",
8585
"config.runtime.fileEncoding": "檔案編碼,`ansi` 選項只在 `Windows` 平台下有效。",
8686
"config.runtime.nonstandardSymbol": "支援非標準的符號。請務必確認你的執行環境支援這些符號。",
87-
"config.runtime.path": "當使用 `require` 時,如何根據輸入的名字來查找檔案\n此選項設定為 `?/init.lua` 意味著當你輸入 `require 'myfile'` 時,會從已載入的檔案中搜尋 `{workspace}/myfile/init.lua`。\n當 `runtime.pathStrict` 設定為 `false` 時,還會嘗試搜尋 `${workspace}/**/myfile/init.lua`。\n如果你想要載入工作區以外的檔案,你需要先設定 `Lua.workspace.library`。\n",
87+
"config.runtime.path": "當使用 `require` 時,如何根據輸入的名字來尋找檔案\n此選項設定為 `?/init.lua` 意味著當你輸入 `require 'myfile'` 時,會從已載入的檔案中搜尋 `{workspace}/myfile/init.lua`。\n當 `runtime.pathStrict` 設定為 `false` 時,還會嘗試搜尋 `${workspace}/**/myfile/init.lua`。\n如果你想要載入工作區以外的檔案,你需要先設定 `Lua.workspace.library`。\n",
8888
"config.runtime.pathStrict": "啟用後 `runtime.path` 將只搜尋第一層目錄,見 `runtime.path` 的説明。",
8989
"config.runtime.plugin": "延伸模組路徑,請查閲[文件](https://github.com/sumneko/lua-language-server/wiki/Plugin)瞭解用法。",
90-
"config.runtime.special": "將自定義全域變數視為一些特殊的內建變數,語言服務將提供特殊的支援。\n下面這個例子表示將 `include` 視為 `require` 。\n```json\n\"Lua.runtime.special\" : {\n \"include\" : \"require\"\n}\n```\n",
90+
"config.runtime.special": "將自訂全域變數視為一些特殊的內建變數,語言服務將提供特殊的支援。\n下面這個例子表示將 `include` 視為 `require` 。\n```json\n\"Lua.runtime.special\" : {\n \"include\" : \"require\"\n}\n```\n",
9191
"config.runtime.unicodeName": "允許在名字中使用 Unicode 字元。",
9292
"config.runtime.version": "Lua執行版本。",
93-
"config.semantic.annotation": "對類型註解進行語義著色",
93+
"config.semantic.annotation": "對型別註解進行語義著色",
9494
"config.semantic.enable": "啟用語義著色。你可能需要同時將 `editor.semanticHighlighting.enabled` 設定為 `true` 才能生效。",
9595
"config.semantic.keyword": "對關鍵字/字面常數/運算子進行語義著色。只有當你的編輯器無法進行語法著色時才需要啟用此功能。",
9696
"config.semantic.variable": "對變數/欄位/參數進行語義著色。",
9797
"config.signatureHelp.enable": "啟用參數提示。",
9898
"config.telemetry.enable": "啟用遙測,透過網路發送你的編輯器資訊與錯誤日誌。在[此處](https://github.com/sumneko/lua-language-server/wiki/%E9%9A%B1%E7%A7%81%E8%81%B2%E6%98%8E)閲讀我們的隱私聲明。\n",
9999
"config.window.progressBar": "在狀態欄顯示進度條。",
100100
"config.window.statusBar": "在狀態欄顯示延伸模組狀態。",
101-
"config.workspace.checkThirdParty": "自動檢測與適應第三方庫,目前支援的庫為:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* LÖVR\n* skynet\n* Jass\n",
101+
"config.workspace.checkThirdParty": "自動偵測與適應第三方庫,目前支援的庫為:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* LÖVR\n* skynet\n* Jass\n",
102102
"config.workspace.ignoreDir": "忽略的檔案與目錄(使用 `.gitignore` 語法)。",
103103
"config.workspace.ignoreSubmodules": "忽略子模組。",
104-
"config.workspace.library": "除了目前工作區以外,還會從哪些目錄中載入檔案。這些目錄中的檔案將被視作外部提供的程式碼庫,部分操作(如重命名欄位)不會修改這些檔案。",
104+
"config.workspace.library": "除了目前工作區以外,還會從哪些目錄中載入檔案。這些目錄中的檔案將被視作外部提供的程式碼庫,部分操作(如重新命名欄位)不會修改這些檔案。",
105105
"config.workspace.maxPreload": "最大預載入檔案數。",
106106
"config.workspace.preloadFileSize": "預載入時跳過大小大於該值(KB)的檔案。",
107-
"config.workspace.supportScheme": "为以下 scheme 的lua文件提供语言服务",
107+
"config.workspace.supportScheme": "為以下 `scheme` 的lua檔案提供語言服務",
108108
"config.workspace.useGitIgnore": "忽略 `.gitignore` 中列舉的檔案。",
109109
"config.workspace.userThirdParty": "在這裡添加私有的第三方庫適應檔案路徑,請參考內建的[組態檔案路徑](https://github.com/sumneko/lua-language-server/tree/master/meta/3rd)"
110110
}

package/configuration.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ local config = {
3838
type = 'object',
3939
markdownDescription = '%config.runtime.special%',
4040
additionalProperties = false,
41-
patternProperties= {
41+
patternProperties = {
4242
['.*'] = {
4343
type = "string",
4444
default = "require",

setting/schema-pt-br.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,16 @@
558558
],
559559
"type": "string"
560560
},
561+
"spell-check": {
562+
"default": "None",
563+
"description": "%config.diagnostics.spell-check%",
564+
"enum": [
565+
"Any",
566+
"Opened",
567+
"None"
568+
],
569+
"type": "string"
570+
},
561571
"trailing-space": {
562572
"default": "Opened",
563573
"description": "后置空格",
@@ -1026,6 +1036,17 @@
10261036
],
10271037
"type": "string"
10281038
},
1039+
"spell-check": {
1040+
"default": "Information",
1041+
"description": "%config.diagnostics.spell-check%",
1042+
"enum": [
1043+
"Error",
1044+
"Warning",
1045+
"Information",
1046+
"Hint"
1047+
],
1048+
"type": "string"
1049+
},
10291050
"trailing-space": {
10301051
"default": "Hint",
10311052
"description": "后置空格",

setting/schema-zh-cn.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,16 @@
558558
],
559559
"type": "string"
560560
},
561+
"spell-check": {
562+
"default": "None",
563+
"description": "%config.diagnostics.spell-check%",
564+
"enum": [
565+
"Any",
566+
"Opened",
567+
"None"
568+
],
569+
"type": "string"
570+
},
561571
"trailing-space": {
562572
"default": "Opened",
563573
"description": "后置空格",
@@ -1026,6 +1036,17 @@
10261036
],
10271037
"type": "string"
10281038
},
1039+
"spell-check": {
1040+
"default": "Information",
1041+
"description": "%config.diagnostics.spell-check%",
1042+
"enum": [
1043+
"Error",
1044+
"Warning",
1045+
"Information",
1046+
"Hint"
1047+
],
1048+
"type": "string"
1049+
},
10291050
"trailing-space": {
10301051
"default": "Hint",
10311052
"description": "后置空格",

0 commit comments

Comments
 (0)