diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-10 03:49:54 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-10 03:49:54 +0800 |
commit | ae07ea940e77cc23eba78e717a09d99233841620 (patch) | |
tree | 3049b9bcd0ace79f7532df301e228cc9fb6040e9 /script/provider/diagnostic.lua | |
parent | 4e0a890060aea1eb54b14b3a77cba8fc42ceeebb (diff) | |
download | lua-language-server-ae07ea940e77cc23eba78e717a09d99233841620.zip |
cancel searching reference
Diffstat (limited to 'script/provider/diagnostic.lua')
-rw-r--r-- | script/provider/diagnostic.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/script/provider/diagnostic.lua b/script/provider/diagnostic.lua index ef61d0c3..b359c21c 100644 --- a/script/provider/diagnostic.lua +++ b/script/provider/diagnostic.lua @@ -221,9 +221,8 @@ function m.doDiagnostic(uri, isScopeDiag) end local version = files.getVersion(uri) - local scp = scope.getScope(uri) - local prog <close> = progress.create(scp, lang.script.WINDOW_DIAGNOSING, 0.5) + local prog <close> = progress.create(uri, lang.script.WINDOW_DIAGNOSING, 0.5) prog:setMessage(ws.getRelativePath(uri)) --log.debug('Diagnostic file:', uri) @@ -367,7 +366,7 @@ function m.awaitDiagnosticsScope(suri) await.sleep(1.0) end local clock = os.clock() - local bar <close> = progress.create(scope.getScope(suri), lang.script.WORKSPACE_DIAGNOSTIC, 1) + local bar <close> = progress.create(suri, lang.script.WORKSPACE_DIAGNOSTIC, 1) local cancelled bar:onCancel(function () log.info('Cancel workspace diagnostics') |