summaryrefslogtreecommitdiff
path: root/server-beta/src/files.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server-beta/src/files.lua')
-rw-r--r--server-beta/src/files.lua3
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