Skip to content

Commit 6772d37

Browse files
committed
fix #580
1 parent 84cc3cc commit 6772d37

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

changelog.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# changelog
22

3+
## 2.0.5
4+
* `FIX` [#580](https://github.com./sumneko/lua-language-server/issues/580)
5+
36
## 2.0.4
47
`2021-6-25`
58
* `FIX` [#550](https://github.com./sumneko/lua-language-server/issues/550)

script/core/command/removeSpace.lua

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
local files = require 'files'
2-
local searcher = require 'core.searcher'
32
local guide = require 'parser.guide'
43
local proto = require 'proto'
54
local lang = require 'language'
@@ -23,10 +22,10 @@ return function (data)
2322

2423
local textEdit = {}
2524
for i = 1, #lines do
26-
local line = searcher.lineContent(lines, text, i, true)
25+
local line = guide.lineContent(lines, text, i, true)
2726
local pos = line:find '[ \t]+$'
2827
if pos then
29-
local start, finish = searcher.lineRange(lines, i, true)
28+
local start, finish = guide.lineRange(lines, i, true)
3029
start = start + pos - 1
3130
if isInString(ast, start) then
3231
goto NEXT_LINE

0 commit comments

Comments
 (0)