diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-09-28 02:46:26 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-09-28 02:46:26 +0800 |
commit | 8c35c44a9b25f104430936cb68f4daece468ec8a (patch) | |
tree | e4231e69c6064e3317e23fa23db2b316d6e574a1 /script-beta | |
parent | 274cd6b326ca6be0da65ebde79f8c48c83bc406b (diff) | |
download | lua-language-server-8c35c44a9b25f104430936cb68f4daece468ec8a.zip |
区分大小写
Diffstat (limited to 'script-beta')
-rw-r--r-- | script-beta/core/hover/description.lua | 2 | ||||
-rw-r--r-- | script-beta/workspace/workspace.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/script-beta/core/hover/description.lua b/script-beta/core/hover/description.lua index af6ad608..9e0066e6 100644 --- a/script-beta/core/hover/description.lua +++ b/script-beta/core/hover/description.lua @@ -39,8 +39,8 @@ local function asString(source) end path = path:gsub('^[/\\]*', '') if searcher then - searcher = ws.normalize(searcher) searcher = searcher:sub(#ws.path + 1) + searcher = ws.normalize(searcher) result[i] = ('* [%s](%s) (假设搜索路径包含 `%s`)'):format(path, uri, searcher) else result[i] = ('* [%s](%s)'):format(path, uri) diff --git a/script-beta/workspace/workspace.lua b/script-beta/workspace/workspace.lua index 9ddb6bff..4413775a 100644 --- a/script-beta/workspace/workspace.lua +++ b/script-beta/workspace/workspace.lua @@ -155,7 +155,7 @@ function m.findUrisByFilePath(path) local see = uri:sub(uriLen - pathLen + 1, uriLen) if files.eq(see, path) then results[#results+1] = uri - posts[uri] = uri:sub(1, uriLen - pathLen) + posts[uri] = files.getOriginUri(uri):sub(1, uriLen - pathLen) end end end |