Skip to content

Commit 78b9c3c

Browse files
committed
fix #538
1 parent e506f0f commit 78b9c3c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* `FIX` loaded new file with ignored filename
55
* `FIX` [#536](https://github.com./sumneko/lua-language-server/issues/536)
66
* `FIX` [#537](https://github.com./sumneko/lua-language-server/issues/537)
7+
* `FIX` [#538](https://github.com./sumneko/lua-language-server/issues/538)
78
* `FIX` [#539](https://github.com./sumneko/lua-language-server/issues/539)
89

910
## 1.21.1

script/workspace/workspace.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -349,11 +349,11 @@ function m.findUrisByFilePath(path)
349349
if platform.OS ~= 'Windows' then
350350
uri = files.getOriginUri(uri)
351351
end
352-
if not uri:find(lpath, 1, true) then
352+
local curPath = furi.decode(files.getOriginUri(uri))
353+
if not curPath:find(lpath, 1, true) then
353354
goto CONTINUE
354355
end
355356
local pathLen = #path
356-
local curPath = furi.decode(files.getOriginUri(uri))
357357
local curLen = #curPath
358358
local seg = curPath:sub(curLen - pathLen, curLen - pathLen)
359359
if seg == '/' or seg == '\\' or seg == '' then

0 commit comments

Comments
 (0)