summaryrefslogtreecommitdiff
path: root/script/core
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
parent87834511ff48f68a1e972c8e8ec78c8d2dcf71e7 (diff)
downloadlua-language-server-61fa71d28000257ce8c676a4f66313cc55572318.zip
dose not need `get_id` anymore
Diffstat (limited to 'script/core')
-rw-r--r--script/core/code-action.lua14
-rw-r--r--script/core/completion/completion.lua2
2 files changed, 8 insertions, 8 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,
diff --git a/script/core/completion/completion.lua b/script/core/completion/completion.lua
index 401a3583..28e9d108 100644
--- a/script/core/completion/completion.lua
+++ b/script/core/completion/completion.lua
@@ -367,7 +367,7 @@ local function checkModule(state, word, position, results)
commitCharacters = {'.'},
command = {
title = 'autoRequire',
- command = 'lua.autoRequire:' .. sp:get_id(),
+ command = 'lua.autoRequire',
arguments = {
{
uri = guide.getUri(state.ast),