summaryrefslogtreecommitdiff
path: root/script/src/method/textDocument/codeAction.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-23 00:05:30 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-23 00:05:30 +0800
commit6da2b175e20ed3c03b0dfcfc9046de1e0e5d4444 (patch)
treefdc22d78150fd1c5edc46732c8b151ccfefb519f /script/src/method/textDocument/codeAction.lua
parentd0ff66c9abe9d6abbca12fd811e0c3cb69c1033a (diff)
downloadlua-language-server-6da2b175e20ed3c03b0dfcfc9046de1e0e5d4444.zip
正路目录
Diffstat (limited to 'script/src/method/textDocument/codeAction.lua')
-rw-r--r--script/src/method/textDocument/codeAction.lua23
1 files changed, 0 insertions, 23 deletions
diff --git a/script/src/method/textDocument/codeAction.lua b/script/src/method/textDocument/codeAction.lua
deleted file mode 100644
index 3c6e8d49..00000000
--- a/script/src/method/textDocument/codeAction.lua
+++ /dev/null
@@ -1,23 +0,0 @@
-local core = require 'core'
-
-return function (lsp, params)
- local uri = params.textDocument.uri
- local vm, lines = lsp:getVM(uri)
- if not vm then
- return
- end
- local diagnostics = params.context.diagnostics
- local range = params.range
-
- local results = core.codeAction(lsp
- , uri
- , diagnostics
- , range
- )
-
- if #results == 0 then
- return nil
- end
-
- return results
-end