summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-02-09 16:51:42 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-02-09 16:51:42 +0800
commit864e44403190d6b96313968d008dbc60a8a11342 (patch)
tree0d30c4fd4723fd745e1d544ba870589392fab4f7 /script
parent0f63b39275be9c5c3eb3bca27f5bd660cdc0ae26 (diff)
downloadlua-language-server-864e44403190d6b96313968d008dbc60a8a11342.zip
fix
Diffstat (limited to 'script')
-rw-r--r--script/provider/provider.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 778c8b1f..1ddca309 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -935,7 +935,7 @@ m.register 'textDocument/formatting' {
function(params)
local uri = files.getRealUri(params.textDocument.uri)
workspace.awaitReady(uri)
- local _ <close> = progress.create(workspace.getScope(uri), lang.script.WINDOW_PROCESSING_TYPE_FORMATTING, 0.5)
+ local _ <close> = progress.create(scope.getScope(uri), lang.script.WINDOW_PROCESSING_TYPE_FORMATTING, 0.5)
if not files.exists(uri) then
return nil
@@ -965,7 +965,7 @@ m.register 'textDocument/rangeFormatting' {
function(params)
local uri = files.getRealUri(params.textDocument.uri)
workspace.awaitReady(uri)
- local _ <close> = progress.create(workspace.getScope(uri), lang.script.WINDOW_PROCESSING_TYPE_FORMATTING, 0.5)
+ local _ <close> = progress.create(scope.getScope(uri), lang.script.WINDOW_PROCESSING_TYPE_FORMATTING, 0.5)
if not files.exists(uri) then
return nil