summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-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'