diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-04-27 10:24:39 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-04-27 10:24:39 +0800 |
commit | 2edb4ba72f5902367985648c3ec9343826535fc3 (patch) | |
tree | be1d9b09df5257ff58effd40df27107eceb816c4 /script/provider/provider.lua | |
parent | ce3b8fd0bbe8c1be6a6c415bf934c9a4b526465a (diff) | |
download | lua-language-server-2edb4ba72f5902367985648c3ec9343826535fc3.zip |
Revert "try to abort incorrect formatting"
This reverts commit 02d43a59203e1d04aaaae3eacdaae5110da6b06d.
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r-- | script/provider/provider.lua | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index 048cf1e0..2e6d8f75 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -1226,7 +1226,6 @@ m.register 'textDocument/formatting' { capability = { documentFormattingProvider = true, }, - abortByFileUpdate = true, ---@async function(params) local uri = files.getRealUri(params.textDocument.uri) @@ -1257,8 +1256,6 @@ m.register 'textDocument/formatting' { } end - await.sleep(0.1) - return results end } @@ -1267,7 +1264,6 @@ m.register 'textDocument/rangeFormatting' { capability = { documentRangeFormattingProvider = true, }, - abortByFileUpdate = true, ---@async function(params) local uri = files.getRealUri(params.textDocument.uri) @@ -1298,8 +1294,6 @@ m.register 'textDocument/rangeFormatting' { } end - await.sleep(0.1) - return results end } @@ -1339,7 +1333,6 @@ m.register 'textDocument/onTypeFormatting' { newText = edit.text:gsub('\t', tab), } end - await.sleep(0.1) return results end } |