diff options
Diffstat (limited to 'script-beta/provider')
-rw-r--r-- | script-beta/provider/diagnostic.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script-beta/provider/diagnostic.lua b/script-beta/provider/diagnostic.lua index 47ffa2fe..89f97cda 100644 --- a/script-beta/provider/diagnostic.lua +++ b/script-beta/provider/diagnostic.lua @@ -110,7 +110,7 @@ function m.clear(uri) end m.cache[uri] = nil proto.notify('textDocument/publishDiagnostics', { - uri = uri, + uri = files.getOriginUri(uri), diagnostics = {}, }) end @@ -190,7 +190,7 @@ function m.refresh(uri) for destUri in files.eachFile() do if destUri ~= uri then await.delay() - m.doDiagnostic(files.getOriginUri(destUri)) + m.doDiagnostic(destUri) end end local passed = os.clock() - clock |