diff --git a/package.json b/package.json index af4ee53e46ba265e102884afa704c23dc1bf11dc..cbe64c3ba73a1d3ec4a6ec19ca3bf1f0fad0a2ee 100644 --- a/package.json +++ b/package.json @@ -31,25 +31,25 @@ "Lua.IntelliSense.traceBeSetted": { "default": false, "markdownDescription": "%config.IntelliSense.traceBeSetted%", - "scope": "window", + "scope": "resource", "type": "boolean" }, "Lua.IntelliSense.traceFieldInject": { "default": false, "markdownDescription": "%config.IntelliSense.traceFieldInject%", - "scope": "window", + "scope": "resource", "type": "boolean" }, "Lua.IntelliSense.traceLocalSet": { "default": false, "markdownDescription": "%config.IntelliSense.traceLocalSet%", - "scope": "window", + "scope": "resource", "type": "boolean" }, "Lua.IntelliSense.traceReturn": { "default": false, "markdownDescription": "%config.IntelliSense.traceReturn%", - "scope": "window", + "scope": "resource", "type": "boolean" }, "Lua.color.mode": { @@ -65,13 +65,13 @@ "%config.color.mode.Semantic%", "%config.color.mode.SemanticEnhanced%" ], - "scope": "window", + "scope": "resource", "type": "string" }, "Lua.completion.autoRequire": { "default": true, "markdownDescription": "%config.completion.autoRequire%", - "scope": "window", + "scope": "resource", "type": "boolean" }, "Lua.completion.callSnippet": { @@ -87,19 +87,19 @@ "%config.completion.callSnippet.Both%", "%config.completion.callSnippet.Replace%" ], - "scope": "window", + "scope": "resource", "type": "string" }, "Lua.completion.displayContext": { "default": 0, "markdownDescription": "%config.completion.displayContext%", - "scope": "window", + "scope": "resource", "type": "integer" }, "Lua.completion.enable": { "default": true, "markdownDescription": "%config.completion.enable%", - "scope": "window", + "scope": "resource", "type": "boolean" }, "Lua.completion.keywordSnippet": { @@ -115,25 +115,25 @@ "%config.completion.keywordSnippet.Both%", "%config.completion.keywordSnippet.Replace%" ], - "scope": "window", + "scope": "resource", "type": "string" }, "Lua.completion.postfix": { "default": "@", "markdownDescription": "%config.completion.postfix%", - "scope": "window", + "scope": "resource", "type": "string" }, "Lua.completion.requireSeparator": { "default": ".", "markdownDescription": "%config.completion.requireSeparator%", - "scope": "window", + "scope": "resource", "type": "string" }, "Lua.completion.showParams": { "default": true, "markdownDescription": "%config.completion.showParams%", - "scope": "window", + "scope": "resource", "type": "boolean" }, "Lua.completion.showWord": { @@ -149,13 +149,13 @@ "%config.completion.showWord.Fallback%", "%config.completion.showWord.Disable%" ], - "scope": "window", + "scope": "resource", "type": "string" }, "Lua.completion.workspaceWord": { "default": true, "markdownDescription": "%config.completion.workspaceWord%", - "scope": "window", + "scope": "resource", "type": "boolean" }, "Lua.diagnostics.disable": { @@ -163,13 +163,13 @@ "type": "string" }, "markdownDescription": "%config.diagnostics.disable%", - "scope": "window", + "scope": "resource", "type": "array" }, "Lua.diagnostics.enable": { "default": true, "markdownDescription": "%config.diagnostics.enable%", - "scope": "window", + "scope": "resource", "type": "boolean" }, "Lua.diagnostics.globals": { @@ -177,7 +177,7 @@ "type": "string" }, "markdownDescription": "%config.diagnostics.globals%", - "scope": "window", + "scope": "resource", "type": "array" }, "Lua.diagnostics.ignoredFiles": { @@ -193,7 +193,7 @@ "%config.diagnostics.files.Opened%", "%config.diagnostics.files.Disable%" ], - "scope": "window", + "scope": "resource", "type": "string" }, "Lua.diagnostics.libraryFiles": { @@ -209,7 +209,7 @@ "%config.diagnostics.files.Opened%", "%config.diagnostics.files.Disable%" ], - "scope": "window", + "scope": "resource", "type": "string" }, "Lua.diagnostics.neededFileStatus": { @@ -617,7 +617,7 @@ "type": "string" } }, - "scope": "window", + "scope": "resource", "title": "neededFileStatus", "type": "object" }, @@ -1066,26 +1066,26 @@ "type": "string" } }, - "scope": "window", + "scope": "resource", "title": "severity", "type": "object" }, "Lua.diagnostics.workspaceDelay": { "default": 0, "markdownDescription": "%config.diagnostics.workspaceDelay%", - "scope": "window", + "scope": "resource", "type": "integer" }, "Lua.diagnostics.workspaceRate": { "default": 100, "markdownDescription": "%config.diagnostics.workspaceRate%", - "scope": "window", + "scope": "resource", "type": "integer" }, "Lua.hint.enable": { "default": false, "markdownDescription": "%config.hint.enable%", - "scope": "window", + "scope": "resource", "type": "boolean" }, "Lua.hint.paramName": { @@ -1101,55 +1101,55 @@ "%config.hint.paramName.Literal%", "%config.hint.paramName.Disable%" ], - "scope": "window", + "scope": "resource", "type": "string" }, "Lua.hint.paramType": { "default": true, "markdownDescription": "%config.hint.paramType%", - "scope": "window", + "scope": "resource", "type": "boolean" }, "Lua.hint.setType": { "default": false, "markdownDescription": "%config.hint.setType%", - "scope": "window", + "scope": "resource", "type": "boolean" }, "Lua.hover.enable": { "default": true, "markdownDescription": "%config.hover.enable%", - "scope": "window", + "scope": "resource", "type": "boolean" }, "Lua.hover.enumsLimit": { "default": 5, "markdownDescription": "%config.hover.enumsLimit%", - "scope": "window", + "scope": "resource", "type": "integer" }, "Lua.hover.previewFields": { "default": 20, "markdownDescription": "%config.hover.previewFields%", - "scope": "window", + "scope": "resource", "type": "integer" }, "Lua.hover.viewNumber": { "default": true, "markdownDescription": "%config.hover.viewNumber%", - "scope": "window", + "scope": "resource", "type": "boolean" }, "Lua.hover.viewString": { "default": true, "markdownDescription": "%config.hover.viewString%", - "scope": "window", + "scope": "resource", "type": "boolean" }, "Lua.hover.viewStringMax": { "default": 1000, "markdownDescription": "%config.hover.viewStringMax%", - "scope": "window", + "scope": "resource", "type": "integer" }, "Lua.misc.parameters": { @@ -1157,7 +1157,7 @@ "type": "string" }, "markdownDescription": "%config.misc.parameters%", - "scope": "window", + "scope": "resource", "type": "array" }, "Lua.runtime.builtin": { @@ -1315,7 +1315,7 @@ "type": "string" } }, - "scope": "window", + "scope": "resource", "type": "object" }, "Lua.runtime.fileEncoding": { @@ -1327,7 +1327,7 @@ "utf16be" ], "markdownDescription": "%config.runtime.fileEncoding%", - "scope": "window", + "scope": "resource", "type": "string" }, "Lua.runtime.nonstandardSymbol": { @@ -1349,7 +1349,7 @@ "type": "string" }, "markdownDescription": "%config.runtime.nonstandardSymbol%", - "scope": "window", + "scope": "resource", "type": "array" }, "Lua.runtime.path": { @@ -1361,19 +1361,19 @@ "type": "string" }, "markdownDescription": "%config.runtime.path%", - "scope": "window", + "scope": "resource", "type": "array" }, "Lua.runtime.pathStrict": { "default": false, "markdownDescription": "%config.runtime.pathStrict%", - "scope": "window", + "scope": "resource", "type": "boolean" }, "Lua.runtime.plugin": { "default": "", "markdownDescription": "%config.runtime.plugin%", - "scope": "window", + "scope": "resource", "type": "string" }, "Lua.runtime.special": { @@ -1396,13 +1396,13 @@ "type": "string" } }, - "scope": "window", + "scope": "resource", "type": "object" }, "Lua.runtime.unicodeName": { "default": false, "markdownDescription": "%config.runtime.unicodeName%", - "scope": "window", + "scope": "resource", "type": "boolean" }, "Lua.runtime.version": { @@ -1415,19 +1415,19 @@ "LuaJIT" ], "markdownDescription": "%config.runtime.version%", - "scope": "window", + "scope": "resource", "type": "string" }, "Lua.signatureHelp.enable": { "default": true, "markdownDescription": "%config.signatureHelp.enable%", - "scope": "window", + "scope": "resource", "type": "boolean" }, "Lua.telemetry.enable": { "default": null, "markdownDescription": "%config.telemetry.enable%", - "scope": "window", + "scope": "resource", "type": [ "boolean", "null" @@ -1436,19 +1436,19 @@ "Lua.window.progressBar": { "default": true, "markdownDescription": "%config.window.progressBar%", - "scope": "window", + "scope": "resource", "type": "boolean" }, "Lua.window.statusBar": { "default": true, "markdownDescription": "%config.window.statusBar%", - "scope": "window", + "scope": "resource", "type": "boolean" }, "Lua.workspace.checkThirdParty": { "default": true, "markdownDescription": "%config.workspace.checkThirdParty%", - "scope": "window", + "scope": "resource", "type": "boolean" }, "Lua.workspace.ignoreDir": { @@ -1459,13 +1459,13 @@ "type": "string" }, "markdownDescription": "%config.workspace.ignoreDir%", - "scope": "window", + "scope": "resource", "type": "array" }, "Lua.workspace.ignoreSubmodules": { "default": true, "markdownDescription": "%config.workspace.ignoreSubmodules%", - "scope": "window", + "scope": "resource", "type": "boolean" }, "Lua.workspace.library": { @@ -1473,25 +1473,25 @@ "type": "string" }, "markdownDescription": "%config.workspace.library%", - "scope": "window", + "scope": "resource", "type": "array" }, "Lua.workspace.maxPreload": { "default": 1000, "markdownDescription": "%config.workspace.maxPreload%", - "scope": "window", + "scope": "resource", "type": "integer" }, "Lua.workspace.preloadFileSize": { "default": 100, "markdownDescription": "%config.workspace.preloadFileSize%", - "scope": "window", + "scope": "resource", "type": "integer" }, "Lua.workspace.useGitIgnore": { "default": true, "markdownDescription": "%config.workspace.useGitIgnore%", - "scope": "window", + "scope": "resource", "type": "boolean" }, "Lua.workspace.userThirdParty": { @@ -1499,7 +1499,7 @@ "type": "string" }, "markdownDescription": "%config.workspace.userThirdParty%", - "scope": "window", + "scope": "resource", "type": "array" } }, diff --git a/setting/schema-zh-cn.json b/setting/schema-zh-cn.json index 7600e224e7bdc480ce67f8605315eb0741fab08c..88eb3799b1444ed4b853245348f4c7f8e1e9e314 100644 --- a/setting/schema-zh-cn.json +++ b/setting/schema-zh-cn.json @@ -21,25 +21,25 @@ "IntelliSense.traceBeSetted": { "default": false, "markdownDescription": "请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。", - "scope": "window", + "scope": "resource", "type": "boolean" }, "IntelliSense.traceFieldInject": { "default": false, "markdownDescription": "请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。", - "scope": "window", + "scope": "resource", "type": "boolean" }, "IntelliSense.traceLocalSet": { "default": false, "markdownDescription": "请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。", - "scope": "window", + "scope": "resource", "type": "boolean" }, "IntelliSense.traceReturn": { "default": false, "markdownDescription": "请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。", - "scope": "window", + "scope": "resource", "type": "boolean" }, "color": { @@ -62,7 +62,7 @@ "语义着色。你可能需要同时将 `editor.semanticHighlighting.enabled` 设置为 `true` 才能生效。", "增强的语义颜色。 类似于`Semantic`,但会进行额外的分析(也会带来额外的开销)。" ], - "scope": "window", + "scope": "resource", "type": "string" }, "completion": { @@ -102,7 +102,7 @@ "completion.autoRequire": { "default": true, "markdownDescription": "输入内容看起来是个文件名时,自动 `require` 此文件。", - "scope": "window", + "scope": "resource", "type": "boolean" }, "completion.callSnippet": { @@ -118,19 +118,19 @@ "显示 `函数名` 与 `调用片段`。", "只显示 `调用片段`。" ], - "scope": "window", + "scope": "resource", "type": "string" }, "completion.displayContext": { "default": 0, "markdownDescription": "预览建议的相关代码片段,可能可以帮助你了解这项建议的用法。设置的数字表示代码片段的截取行数,设置为`0`可以禁用此功能。", - "scope": "window", + "scope": "resource", "type": "integer" }, "completion.enable": { "default": true, "markdownDescription": "启用自动完成。", - "scope": "window", + "scope": "resource", "type": "boolean" }, "completion.keywordSnippet": { @@ -146,25 +146,25 @@ "显示 `关键字` 与 `语法片段`。", "只显示 `语法片段`。" ], - "scope": "window", + "scope": "resource", "type": "string" }, "completion.postfix": { "default": "@", "markdownDescription": "用于触发后缀建议的符号。", - "scope": "window", + "scope": "resource", "type": "string" }, "completion.requireSeparator": { "default": ".", "markdownDescription": "`require` 时使用的分隔符。", - "scope": "window", + "scope": "resource", "type": "string" }, "completion.showParams": { "default": true, "markdownDescription": "在建议列表中显示函数的参数信息,函数拥有多个定义时会分开显示。", - "scope": "window", + "scope": "resource", "type": "boolean" }, "completion.showWord": { @@ -180,13 +180,13 @@ "无法根据语义提供建议时才显示上下文单词。", "不显示上下文单词。" ], - "scope": "window", + "scope": "resource", "type": "string" }, "completion.workspaceWord": { "default": true, "markdownDescription": "显示的上下文单词是否包含工作区中其他文件的内容。", - "scope": "window", + "scope": "resource", "type": "boolean" }, "diagnostics": { @@ -225,13 +225,13 @@ "type": "string" }, "markdownDescription": "禁用的诊断(使用浮框括号内的代码)。\n", - "scope": "window", + "scope": "resource", "type": "array" }, "diagnostics.enable": { "default": true, "markdownDescription": "启用诊断。", - "scope": "window", + "scope": "resource", "type": "boolean" }, "diagnostics.globals": { @@ -239,7 +239,7 @@ "type": "string" }, "markdownDescription": "已定义的全局变量。\n", - "scope": "window", + "scope": "resource", "type": "array" }, "diagnostics.ignoredFiles": { @@ -255,7 +255,7 @@ "只有打开这些文件时才会诊断。", "不诊断这些文件。" ], - "scope": "window", + "scope": "resource", "type": "string" }, "diagnostics.libraryFiles": { @@ -271,7 +271,7 @@ "只有打开这些文件时才会诊断。", "不诊断这些文件。" ], - "scope": "window", + "scope": "resource", "type": "string" }, "diagnostics.neededFileStatus": { @@ -679,7 +679,7 @@ "type": "string" } }, - "scope": "window", + "scope": "resource", "title": "neededFileStatus", "type": "object" }, @@ -1128,20 +1128,20 @@ "type": "string" } }, - "scope": "window", + "scope": "resource", "title": "severity", "type": "object" }, "diagnostics.workspaceDelay": { "default": 0, "markdownDescription": "进行工作区诊断的延迟(毫秒)。当你启动工作区,或编辑了任意文件后,将会在后台对整个工作区进行重新诊断。设置为负数可以禁用工作区诊断。", - "scope": "window", + "scope": "resource", "type": "integer" }, "diagnostics.workspaceRate": { "default": 100, "markdownDescription": "工作区诊断的运行速率(百分比)。降低该值会减少CPU占用,但是也会降低工作区诊断的速度。你当前正在编辑的文件的诊断总是全速完成,不受该选项影响。", - "scope": "window", + "scope": "resource", "type": "integer" }, "hint": { @@ -1163,7 +1163,7 @@ "hint.enable": { "default": false, "markdownDescription": "启用内联提示。", - "scope": "window", + "scope": "resource", "type": "boolean" }, "hint.paramName": { @@ -1179,19 +1179,19 @@ "只有字面量类型的参数进行提示。", "禁用参数提示。" ], - "scope": "window", + "scope": "resource", "type": "string" }, "hint.paramType": { "default": true, "markdownDescription": "在函数的参数位置提示类型。", - "scope": "window", + "scope": "resource", "type": "boolean" }, "hint.setType": { "default": false, "markdownDescription": "在赋值操作位置提示类型。", - "scope": "window", + "scope": "resource", "type": "boolean" }, "hover": { @@ -1219,37 +1219,37 @@ "hover.enable": { "default": true, "markdownDescription": "启用悬停提示。", - "scope": "window", + "scope": "resource", "type": "boolean" }, "hover.enumsLimit": { "default": 5, "markdownDescription": "当值对应多个类型时,限制类型的显示数量。", - "scope": "window", + "scope": "resource", "type": "integer" }, "hover.previewFields": { "default": 20, "markdownDescription": "悬停提示查看表时,限制表内字段的最大预览数量。", - "scope": "window", + "scope": "resource", "type": "integer" }, "hover.viewNumber": { "default": true, "markdownDescription": "悬停提示查看数字内容(仅当字面量不是十进制时)。", - "scope": "window", + "scope": "resource", "type": "boolean" }, "hover.viewString": { "default": true, "markdownDescription": "悬停提示查看字符串内容(仅当字面量包含转义符时)。", - "scope": "window", + "scope": "resource", "type": "boolean" }, "hover.viewStringMax": { "default": 1000, "markdownDescription": "悬停提示查看字符串内容时的最大长度。", - "scope": "window", + "scope": "resource", "type": "integer" }, "misc": { @@ -1264,7 +1264,7 @@ "type": "string" }, "markdownDescription": "VSCode中启动语言服务时的[命令行参数](https://github.com/sumneko/lua-language-server/wiki/Command-line)。", - "scope": "window", + "scope": "resource", "type": "array" }, "runtime": { @@ -1453,7 +1453,7 @@ "type": "string" } }, - "scope": "window", + "scope": "resource", "type": "object" }, "runtime.fileEncoding": { @@ -1465,7 +1465,7 @@ "utf16be" ], "markdownDescription": "文件编码,`ansi` 选项只在 `Windows` 平台下有效。", - "scope": "window", + "scope": "resource", "type": "string" }, "runtime.nonstandardSymbol": { @@ -1487,7 +1487,7 @@ "type": "string" }, "markdownDescription": "支持非标准的符号。请务必确认你的运行环境支持这些符号。", - "scope": "window", + "scope": "resource", "type": "array" }, "runtime.path": { @@ -1499,19 +1499,19 @@ "type": "string" }, "markdownDescription": "当使用 `require` 时,如何根据输入的名字来查找文件。\n此选项设置为 `?/init.lua` 意味着当你输入 `require 'myfile'` 时,会从已加载的文件中搜索 `{workspace}/myfile/init.lua`。\n当 `runtime.pathStrict` 设置为 `false` 时,还会尝试搜索 `${workspace}/**/myfile/init.lua`。\n如果你想要加载工作区以外的文件,你需要先设置 `Lua.workspace.library`。\n", - "scope": "window", + "scope": "resource", "type": "array" }, "runtime.pathStrict": { "default": false, "markdownDescription": "启用后 `runtime.path` 将只搜索第一层目录,见 `runtime.path` 的说明。", - "scope": "window", + "scope": "resource", "type": "boolean" }, "runtime.plugin": { "default": "", "markdownDescription": "插件路径,请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/Plugin)了解用法。", - "scope": "window", + "scope": "resource", "type": "string" }, "runtime.special": { @@ -1534,13 +1534,13 @@ "type": "string" } }, - "scope": "window", + "scope": "resource", "type": "object" }, "runtime.unicodeName": { "default": false, "markdownDescription": "允许在名字中使用 Unicode 字符。", - "scope": "window", + "scope": "resource", "type": "boolean" }, "runtime.version": { @@ -1553,7 +1553,7 @@ "LuaJIT" ], "markdownDescription": "Lua运行版本。", - "scope": "window", + "scope": "resource", "type": "string" }, "signatureHelp": { @@ -1566,7 +1566,7 @@ "signatureHelp.enable": { "default": true, "markdownDescription": "启用参数提示。", - "scope": "window", + "scope": "resource", "type": "boolean" }, "telemetry": { @@ -1579,7 +1579,7 @@ "telemetry.enable": { "default": null, "markdownDescription": "启用遥测,通过网络发送你的编辑器信息与错误日志。在[此处](https://github.com/sumneko/lua-language-server/wiki/%E9%9A%90%E7%A7%81%E5%A3%B0%E6%98%8E)阅读我们的隐私声明。\n", - "scope": "window", + "scope": "resource", "type": [ "boolean", "null" @@ -1598,13 +1598,13 @@ "window.progressBar": { "default": true, "markdownDescription": "在状态栏显示进度条。", - "scope": "window", + "scope": "resource", "type": "boolean" }, "window.statusBar": { "default": true, "markdownDescription": "在状态栏显示插件状态。", - "scope": "window", + "scope": "resource", "type": "boolean" }, "workspace": { @@ -1638,7 +1638,7 @@ "workspace.checkThirdParty": { "default": true, "markdownDescription": "自动检测与适配第三方库,目前支持的库为:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* skynet\n* Jass\n", - "scope": "window", + "scope": "resource", "type": "boolean" }, "workspace.ignoreDir": { @@ -1649,13 +1649,13 @@ "type": "string" }, "markdownDescription": "忽略的文件与目录(使用 `.gitignore` 语法)。\n", - "scope": "window", + "scope": "resource", "type": "array" }, "workspace.ignoreSubmodules": { "default": true, "markdownDescription": "忽略子模块。", - "scope": "window", + "scope": "resource", "type": "boolean" }, "workspace.library": { @@ -1663,25 +1663,25 @@ "type": "string" }, "markdownDescription": "除了当前工作区以外,还会从哪些目录中加载文件。这些目录中的文件将被视作外部提供的代码库,部分操作(如重命名字段)不会修改这些文件。", - "scope": "window", + "scope": "resource", "type": "array" }, "workspace.maxPreload": { "default": 1000, "markdownDescription": "最大预加载文件数。", - "scope": "window", + "scope": "resource", "type": "integer" }, "workspace.preloadFileSize": { "default": 100, "markdownDescription": "预加载时跳过大小大于该值(KB)的文件。", - "scope": "window", + "scope": "resource", "type": "integer" }, "workspace.useGitIgnore": { "default": true, "markdownDescription": "忽略 `.gitignore` 中列举的文件。", - "scope": "window", + "scope": "resource", "type": "boolean" }, "workspace.userThirdParty": { @@ -1689,7 +1689,7 @@ "type": "string" }, "markdownDescription": "在这里添加私有的第三方库适配文件路径,请参考内置的[配置文件路径](https://github.com/sumneko/lua-language-server/tree/master/meta/3rd)", - "scope": "window", + "scope": "resource", "type": "array" } }, diff --git a/setting/schema.json b/setting/schema.json index e84a0c2f4160ac57faae1129704c53cce5ead516..60ad4e8d7a60dbed9a9c24d854daef1742da2172 100644 --- a/setting/schema.json +++ b/setting/schema.json @@ -21,25 +21,25 @@ "IntelliSense.traceBeSetted": { "default": false, "markdownDescription": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.", - "scope": "window", + "scope": "resource", "type": "boolean" }, "IntelliSense.traceFieldInject": { "default": false, "markdownDescription": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.", - "scope": "window", + "scope": "resource", "type": "boolean" }, "IntelliSense.traceLocalSet": { "default": false, "markdownDescription": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.", - "scope": "window", + "scope": "resource", "type": "boolean" }, "IntelliSense.traceReturn": { "default": false, "markdownDescription": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.", - "scope": "window", + "scope": "resource", "type": "boolean" }, "color": { @@ -62,7 +62,7 @@ "Semantic color. You may need to set `editor.semanticHighlighting.enabled` to `true` to take effect.", "Enhanced semantic color. Like `Semantic`, but with additional analysis which might be more computationally expensive." ], - "scope": "window", + "scope": "resource", "type": "string" }, "completion": { @@ -102,7 +102,7 @@ "completion.autoRequire": { "default": true, "markdownDescription": "When the input looks like a file name, automatically `require` this file.", - "scope": "window", + "scope": "resource", "type": "boolean" }, "completion.callSnippet": { @@ -118,19 +118,19 @@ "Shows `function name` and `call snippet`.", "Only shows `call snippet.`" ], - "scope": "window", + "scope": "resource", "type": "string" }, "completion.displayContext": { "default": 0, "markdownDescription": "Previewing the relevant code snippet of the suggestion may help you understand the usage of the suggestion. The number set indicates the number of intercepted lines in the code fragment. If it is set to `0`, this feature can be disabled.", - "scope": "window", + "scope": "resource", "type": "integer" }, "completion.enable": { "default": true, "markdownDescription": "Enable completion.", - "scope": "window", + "scope": "resource", "type": "boolean" }, "completion.keywordSnippet": { @@ -146,25 +146,25 @@ "Shows `keyword` and `syntax snippet`.", "Only shows `syntax snippet`." ], - "scope": "window", + "scope": "resource", "type": "string" }, "completion.postfix": { "default": "@", "markdownDescription": "The symbol used to trigger the postfix suggestion.", - "scope": "window", + "scope": "resource", "type": "string" }, "completion.requireSeparator": { "default": ".", "markdownDescription": "The separator used when `require`.", - "scope": "window", + "scope": "resource", "type": "string" }, "completion.showParams": { "default": true, "markdownDescription": "Display parameters in completion list. When the function has multiple definitions, they will be displayed separately.", - "scope": "window", + "scope": "resource", "type": "boolean" }, "completion.showWord": { @@ -180,13 +180,13 @@ "Contextual words are only displayed when suggestions based on semantics cannot be provided.", "Do not display context words." ], - "scope": "window", + "scope": "resource", "type": "string" }, "completion.workspaceWord": { "default": true, "markdownDescription": "Whether the displayed context word contains the content of other files in the workspace.", - "scope": "window", + "scope": "resource", "type": "boolean" }, "diagnostics": { @@ -225,13 +225,13 @@ "type": "string" }, "markdownDescription": "Disabled diagnostic (Use code in hover brackets).\n", - "scope": "window", + "scope": "resource", "type": "array" }, "diagnostics.enable": { "default": true, "markdownDescription": "Enable diagnostics.", - "scope": "window", + "scope": "resource", "type": "boolean" }, "diagnostics.globals": { @@ -239,7 +239,7 @@ "type": "string" }, "markdownDescription": "Defined global variables.\n", - "scope": "window", + "scope": "resource", "type": "array" }, "diagnostics.ignoredFiles": { @@ -255,7 +255,7 @@ "Only when these files are opened will it be diagnosed.", "These files are not diagnosed." ], - "scope": "window", + "scope": "resource", "type": "string" }, "diagnostics.libraryFiles": { @@ -271,7 +271,7 @@ "Only when these files are opened will it be diagnosed.", "These files are not diagnosed." ], - "scope": "window", + "scope": "resource", "type": "string" }, "diagnostics.neededFileStatus": { @@ -679,7 +679,7 @@ "type": "string" } }, - "scope": "window", + "scope": "resource", "title": "neededFileStatus", "type": "object" }, @@ -1128,20 +1128,20 @@ "type": "string" } }, - "scope": "window", + "scope": "resource", "title": "severity", "type": "object" }, "diagnostics.workspaceDelay": { "default": 0, "markdownDescription": "Latency (milliseconds) for workspace diagnostics. When you start the workspace, or edit any file, the entire workspace will be re-diagnosed in the background. Set to negative to disable workspace diagnostics.", - "scope": "window", + "scope": "resource", "type": "integer" }, "diagnostics.workspaceRate": { "default": 100, "markdownDescription": "Workspace diagnostics run rate (%). Decreasing this value reduces CPU usage, but also reduces the speed of workspace diagnostics. The diagnosis of the file you are currently editing is always done at full speed and is not affected by this setting.", - "scope": "window", + "scope": "resource", "type": "integer" }, "hint": { @@ -1163,7 +1163,7 @@ "hint.enable": { "default": false, "markdownDescription": "Enabel hint.", - "scope": "window", + "scope": "resource", "type": "boolean" }, "hint.paramName": { @@ -1179,19 +1179,19 @@ "Only literal type parameters are shown.", "Disable parameter hints." ], - "scope": "window", + "scope": "resource", "type": "string" }, "hint.paramType": { "default": true, "markdownDescription": "Show type hints at the parameter of the function.", - "scope": "window", + "scope": "resource", "type": "boolean" }, "hint.setType": { "default": false, "markdownDescription": "Show hints of type at assignment operation.", - "scope": "window", + "scope": "resource", "type": "boolean" }, "hover": { @@ -1219,37 +1219,37 @@ "hover.enable": { "default": true, "markdownDescription": "Enable hover.", - "scope": "window", + "scope": "resource", "type": "boolean" }, "hover.enumsLimit": { "default": 5, "markdownDescription": "When the value corresponds to multiple types, limit the number of types displaying.", - "scope": "window", + "scope": "resource", "type": "integer" }, "hover.previewFields": { "default": 20, "markdownDescription": "When hovering to view a table, limits the maximum number of previews for fields.", - "scope": "window", + "scope": "resource", "type": "integer" }, "hover.viewNumber": { "default": true, "markdownDescription": "Hover to view numeric content (only if literal is not decimal).", - "scope": "window", + "scope": "resource", "type": "boolean" }, "hover.viewString": { "default": true, "markdownDescription": "Hover to view the contents of a string (only if the literal contains an escape character).", - "scope": "window", + "scope": "resource", "type": "boolean" }, "hover.viewStringMax": { "default": 1000, "markdownDescription": "The maximum length of a hover to view the contents of a string.", - "scope": "window", + "scope": "resource", "type": "integer" }, "misc": { @@ -1264,7 +1264,7 @@ "type": "string" }, "markdownDescription": "[Command line parameters](https://github.com/sumneko/lua-telemetry-server/tree/master/method) when starting the language service in VSCode.", - "scope": "window", + "scope": "resource", "type": "array" }, "runtime": { @@ -1453,7 +1453,7 @@ "type": "string" } }, - "scope": "window", + "scope": "resource", "type": "object" }, "runtime.fileEncoding": { @@ -1465,7 +1465,7 @@ "utf16be" ], "markdownDescription": "File encoding. The `ansi` option is only available under the `Windows` platform.", - "scope": "window", + "scope": "resource", "type": "string" }, "runtime.nonstandardSymbol": { @@ -1487,7 +1487,7 @@ "type": "string" }, "markdownDescription": "Supports non-standard symbols. Make sure that your runtime environment supports these symbols.", - "scope": "window", + "scope": "resource", "type": "array" }, "runtime.path": { @@ -1499,19 +1499,19 @@ "type": "string" }, "markdownDescription": "When using `require`, how to find the file based on the input name.\nSetting this config to `?/init.lua` means that when you enter `require 'myfile'`, `${workspace}/myfile/init.lua` will be searched from the loaded files.\nif `runtime.pathStrict` is `false`, `${workspace}/**/myfile/init.lua` will also be searched.\nIf you want to load files outside the workspace, you need to set `Lua.workspace.library` first.\n", - "scope": "window", + "scope": "resource", "type": "array" }, "runtime.pathStrict": { "default": false, "markdownDescription": "When enabled, `runtime.path` will only search the first level of directories, see the description of `runtime.path`.", - "scope": "window", + "scope": "resource", "type": "boolean" }, "runtime.plugin": { "default": "", "markdownDescription": "Plugin path. Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/Plugin) to learn more.", - "scope": "window", + "scope": "resource", "type": "string" }, "runtime.special": { @@ -1534,13 +1534,13 @@ "type": "string" } }, - "scope": "window", + "scope": "resource", "type": "object" }, "runtime.unicodeName": { "default": false, "markdownDescription": "Allows Unicode characters in name.", - "scope": "window", + "scope": "resource", "type": "boolean" }, "runtime.version": { @@ -1553,7 +1553,7 @@ "LuaJIT" ], "markdownDescription": "Lua runtime version.", - "scope": "window", + "scope": "resource", "type": "string" }, "signatureHelp": { @@ -1566,7 +1566,7 @@ "signatureHelp.enable": { "default": true, "markdownDescription": "Enable signature help.", - "scope": "window", + "scope": "resource", "type": "boolean" }, "telemetry": { @@ -1579,7 +1579,7 @@ "telemetry.enable": { "default": null, "markdownDescription": "Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Privacy-Policy).\n", - "scope": "window", + "scope": "resource", "type": [ "boolean", "null" @@ -1598,13 +1598,13 @@ "window.progressBar": { "default": true, "markdownDescription": "Show progress bar in status bar.", - "scope": "window", + "scope": "resource", "type": "boolean" }, "window.statusBar": { "default": true, "markdownDescription": "Show extension status in status bar.", - "scope": "window", + "scope": "resource", "type": "boolean" }, "workspace": { @@ -1638,7 +1638,7 @@ "workspace.checkThirdParty": { "default": true, "markdownDescription": "Automatic detection and adaptation of third-party libraries, currently supported libraries are:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* skynet\n* Jass\n", - "scope": "window", + "scope": "resource", "type": "boolean" }, "workspace.ignoreDir": { @@ -1649,13 +1649,13 @@ "type": "string" }, "markdownDescription": "Ignored files and directories (Use `.gitignore` grammar).\n", - "scope": "window", + "scope": "resource", "type": "array" }, "workspace.ignoreSubmodules": { "default": true, "markdownDescription": "Ignore submodules.", - "scope": "window", + "scope": "resource", "type": "boolean" }, "workspace.library": { @@ -1663,25 +1663,25 @@ "type": "string" }, "markdownDescription": "In addition to the current workspace, which directories will load files from. The files in these directories will be treated as externally provided code libraries, and some features (such as renaming fields) will not modify these files.", - "scope": "window", + "scope": "resource", "type": "array" }, "workspace.maxPreload": { "default": 1000, "markdownDescription": "Max preloaded files.", - "scope": "window", + "scope": "resource", "type": "integer" }, "workspace.preloadFileSize": { "default": 100, "markdownDescription": "Skip files larger than this value (KB) when preloading.", - "scope": "window", + "scope": "resource", "type": "integer" }, "workspace.useGitIgnore": { "default": true, "markdownDescription": "Ignore files list in `.gitignore` .", - "scope": "window", + "scope": "resource", "type": "boolean" }, "workspace.userThirdParty": { @@ -1689,7 +1689,7 @@ "type": "string" }, "markdownDescription": "Add private third-party library configuration file paths here, please refer to the built-in [configuration file path](https://github.com/sumneko/lua-language-server/tree/master/meta/3rd)", - "scope": "window", + "scope": "resource", "type": "array" } },