diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-09-23 12:49:15 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-09-23 12:49:15 +0800 |
commit | e88478fa7a42085484d2f9175a720e2a41feb041 (patch) | |
tree | 10a06d3d63bc67492ea4822c1a07899d9219ab9a /server-beta/src/files.lua | |
parent | 93a19c3772c8f0c0f01c0f9669a3cb0ba7393986 (diff) | |
download | lua-language-server-e88478fa7a42085484d2f9175a720e2a41feb041.zip |
可以跳转局部变量了
Diffstat (limited to 'server-beta/src/files.lua')
-rw-r--r-- | server-beta/src/files.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server-beta/src/files.lua b/server-beta/src/files.lua index 7d1fe0da..0d8bd526 100644 --- a/server-beta/src/files.lua +++ b/server-beta/src/files.lua @@ -25,6 +25,7 @@ end --- 设置文件文本 function m.setText(uri, text) + local originUri = uri if platform.OS == 'Windows' then uri = uri:lower() end @@ -40,7 +41,7 @@ function m.setText(uri, text) pub.removeTask(file.compiling) end file.compiling = pub.syncTask('compile', text, function (ast) - ast.uri = uri + ast.uri = originUri file.ast = ast file.compiling = nil local onCompiledList = file.onCompiledList |