summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-05-28 01:25:59 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-05-28 01:25:59 +0800
commite98a7d7d043f020ff6f21c6b977a3f64b31f6017 (patch)
treeb8664a950f9bdc8b4de4e0354d7c1aea470eeb51 /script/provider
parentb2857d1ba8b5a64ffa4879d9aa95fb7a26ef2101 (diff)
downloadlua-language-server-e98a7d7d043f020ff6f21c6b977a3f64b31f6017.zip
remove supporting for `pull diagnostic`
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/diagnostic.lua1
-rw-r--r--script/provider/provider.lua28
2 files changed, 15 insertions, 14 deletions
diff --git a/script/provider/diagnostic.lua b/script/provider/diagnostic.lua
index d7051d7f..8b4240f3 100644
--- a/script/provider/diagnostic.lua
+++ b/script/provider/diagnostic.lua
@@ -536,6 +536,7 @@ end
---@return 'server' | 'client'
function m.getOwner(uri)
-- TODO
+ do return 'server' end
if PREVIEW then
return 'client'
else
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 3baf21ee..7732c3f3 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -1213,14 +1213,14 @@ m.register 'inlayHint/resolve' {
}
m.register 'textDocument/diagnostic' {
- preview = true,
- capability = {
- diagnosticProvider = {
- identifier = 'identifier',
- interFileDependencies = true,
- workspaceDiagnostics = false,
- }
- },
+ --preview = true,
+ --capability = {
+ -- diagnosticProvider = {
+ -- identifier = 'identifier',
+ -- interFileDependencies = true,
+ -- workspaceDiagnostics = false,
+ -- }
+ --},
---@async
function (params)
local uri = files.getRealUri(params.textDocument.uri)
@@ -1246,12 +1246,12 @@ m.register 'textDocument/diagnostic' {
}
m.register 'workspace/diagnostic' {
- preview = true,
- capability = {
- diagnosticProvider = {
- workspaceDiagnostics = false,
- }
- },
+ --preview = true,
+ --capability = {
+ -- diagnosticProvider = {
+ -- workspaceDiagnostics = false,
+ -- }
+ --},
---@async
function (params)
local core = require 'provider.diagnostic'