summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-07-22 17:22:10 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-07-22 17:22:10 +0800
commit5bf4d5f892e9af225f2cdd77c2e3ea4be582705b (patch)
tree6c6a6c4972e85a2cafbe689cb5ab42b306e51789 /script/core
parent050b7262a4019a1ecafac0acdc5bd9a1b0ca0bf4 (diff)
downloadlua-language-server-5bf4d5f892e9af225f2cdd77c2e3ea4be582705b.zip
修改配置由前端完成;为了防止冲突,命令加个前缀
Diffstat (limited to 'script/core')
-rw-r--r--script/core/code_action.lua20
1 files changed, 10 insertions, 10 deletions
diff --git a/script/core/code_action.lua b/script/core/code_action.lua
index b5fa91ef..c9203f29 100644
--- a/script/core/code_action.lua
+++ b/script/core/code_action.lua
@@ -7,10 +7,10 @@ local function disableDiagnostic(lsp, uri, data, callback)
kind = 'quickfix',
command = {
title = lang.script.COMMAND_DISABLE_DIAG,
- command = 'config',
+ command = 'lua.config',
arguments = {
{
- key = {'diagnostics', 'disable'},
+ key = 'Lua.diagnostics.disable',
action = 'add',
value = data.code,
uri = uri,
@@ -26,10 +26,10 @@ local function addGlobal(name, uri, callback)
kind = 'quickfix',
command = {
title = lang.script.COMMAND_MARK_GLOBAL,
- command = 'config',
+ command = 'lua.config',
arguments = {
{
- key = {'diagnostics', 'globals'},
+ key = 'Lua.diagnostics.globals',
action = 'add',
value = name,
uri = uri,
@@ -45,10 +45,10 @@ local function changeVersion(version, uri, callback)
kind = 'quickfix',
command = {
title = lang.script.COMMAND_RUNTIME_VERSION,
- command = 'config',
+ command = 'lua.config',
arguments = {
{
- key = {'runtime', 'version'},
+ key = 'Lua.runtime.version',
action = 'set',
value = version,
uri = uri,
@@ -64,10 +64,10 @@ local function openCustomLibrary(libName, uri, callback)
kind = 'quickfix',
command = {
title = lang.script.COMMAND_OPEN_LIBRARY,
- command = 'config',
+ command = 'lua.config',
arguments = {
{
- key = {'runtime', 'library'},
+ key = 'Lua.runtime.library',
action = 'add',
value = libName,
uri = uri,
@@ -124,7 +124,7 @@ local function solveTrailingSpace(lsp, uri, data, callback)
kind = 'quickfix',
command = {
title = lang.script.COMMAND_REMOVE_SPACE,
- command = 'removeSpace',
+ command = 'lua.removeSpace',
arguments = {
{
uri = uri,
@@ -160,7 +160,7 @@ local function solveAmbiguity1(lsp, uri, data, callback)
kind = 'quickfix',
command = {
title = lang.script.COMMAND_ADD_BRACKETS,
- command = 'solve',
+ command = 'lua.solve',
arguments = {
{
name = 'ambiguity-1',