summaryrefslogtreecommitdiff
path: root/script/core/code-action.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-01-04 19:40:31 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-01-04 19:40:31 +0800
commit61fa71d28000257ce8c676a4f66313cc55572318 (patch)
tree7b7b9f6f6af425e96463bbac56647ecf776fa4c8 /script/core/code-action.lua
parent87834511ff48f68a1e972c8e8ec78c8d2dcf71e7 (diff)
downloadlua-language-server-61fa71d28000257ce8c676a4f66313cc55572318.zip
dose not need `get_id` anymore
Diffstat (limited to 'script/core/code-action.lua')
-rw-r--r--script/core/code-action.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/script/core/code-action.lua b/script/core/code-action.lua
index ad048c48..b2a6fac9 100644
--- a/script/core/code-action.lua
+++ b/script/core/code-action.lua
@@ -49,7 +49,7 @@ local function disableDiagnostic(uri, code, start, results)
kind = 'quickfix',
command = {
title = lang.script.COMMAND_DISABLE_DIAG,
- command = 'lua.setConfig:' .. sp:get_id(),
+ command = 'lua.setConfig',
arguments = {
{
key = 'Lua.diagnostics.disable',
@@ -86,7 +86,7 @@ local function markGlobal(uri, name, results)
kind = 'quickfix',
command = {
title = lang.script.COMMAND_MARK_GLOBAL,
- command = 'lua.setConfig:' .. sp:get_id(),
+ command = 'lua.setConfig',
arguments = {
{
key = 'Lua.diagnostics.globals',
@@ -105,7 +105,7 @@ local function changeVersion(uri, version, results)
kind = 'quickfix',
command = {
title = lang.script.COMMAND_RUNTIME_VERSION,
- command = 'lua.setConfig:' .. sp:get_id(),
+ command = 'lua.setConfig',
arguments = {
{
key = 'Lua.runtime.version',
@@ -223,7 +223,7 @@ local function solveSyntaxUnicodeName(uri, err, results)
kind = 'quickfix',
command = {
title = lang.script.COMMAND_UNICODE_NAME,
- command = 'lua.setConfig:' .. sp:get_id(),
+ command = 'lua.setConfig',
arguments = {
{
key = 'Lua.runtime.unicodeName',
@@ -280,7 +280,7 @@ local function solveAmbiguity1(uri, diag, results)
kind = 'quickfix',
command = {
title = lang.script.COMMAND_ADD_BRACKETS,
- command = 'lua.solve:' .. sp:get_id(),
+ command = 'lua.solve',
arguments = {
{
name = 'ambiguity-1',
@@ -298,7 +298,7 @@ local function solveTrailingSpace(uri, diag, results)
kind = 'quickfix',
command = {
title = lang.script.COMMAND_REMOVE_SPACE,
- command = 'lua.removeSpace:' .. sp:get_id(),
+ command = 'lua.removeSpace',
arguments = {
{
uri = uri,
@@ -570,7 +570,7 @@ local function checkJsonToLua(results, uri, start, finish)
kind = 'refactor.rewrite',
command = {
title = lang.script.COMMAND_JSON_TO_LUA,
- command = 'lua.jsonToLua:' .. sp:get_id(),
+ command = 'lua.jsonToLua',
arguments = {
{
uri = uri,