From e98a7d7d043f020ff6f21c6b977a3f64b31f6017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sat, 28 May 2022 01:25:59 +0800 Subject: remove supporting for `pull diagnostic` --- script/provider/diagnostic.lua | 1 + script/provider/provider.lua | 28 ++++++++++++++-------------- 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' -- cgit v1.2.3