summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-02-12 14:05:30 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-02-12 14:05:40 +0800
commit2b149c1c57b27b4456fd6626c5e8f2f45aeef9cb (patch)
treed806eb67cb8db088e7dd3fc2c352ecfd60c5a97c /script
parent54a23672cc82d42a86932cf3245388c98c0c1bcc (diff)
downloadlua-language-server-2b149c1c57b27b4456fd6626c5e8f2f45aeef9cb.zip
update format
Diffstat (limited to 'script')
-rw-r--r--script/provider/provider.lua7
1 files changed, 0 insertions, 7 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 5af56f24..c2ab4b7b 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -930,12 +930,9 @@ m.register '$/status/click' {
}
m.register 'textDocument/formatting' {
- abortByFileUpdate = true,
---@async
function(params)
local uri = files.getRealUri(params.textDocument.uri)
- workspace.awaitReady(uri)
- local _ <close> = progress.create(scope.getScope(uri), lang.script.WINDOW_PROCESSING_TYPE_FORMATTING, 0.5)
if not files.exists(uri) then
return nil
@@ -960,12 +957,9 @@ m.register 'textDocument/formatting' {
}
m.register 'textDocument/rangeFormatting' {
- abortByFileUpdate = true,
---@async
function(params)
local uri = files.getRealUri(params.textDocument.uri)
- workspace.awaitReady(uri)
- local _ <close> = progress.create(scope.getScope(uri), lang.script.WINDOW_PROCESSING_TYPE_FORMATTING, 0.5)
if not files.exists(uri) then
return nil
@@ -990,7 +984,6 @@ m.register 'textDocument/rangeFormatting' {
}
m.register 'config/editorconfig/update' {
- abortByFileUpdate = true,
---@async
function(params)
local codeFormat = require "code_format"