summaryrefslogtreecommitdiff
path: root/script/workspace
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-01-27 16:59:05 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-01-27 16:59:05 +0800
commite72f5143dc1d2d41763b74809b1ffe5ec5f426c2 (patch)
tree50065e80f626ab286795e13c4cdfa195305be31f /script/workspace
parent219c802e4e6a67aa9c4a1b4a5bd7886f8181b7c4 (diff)
downloadlua-language-server-e72f5143dc1d2d41763b74809b1ffe5ec5f426c2.zip
fix modifying the code before loading finish
Diffstat (limited to 'script/workspace')
-rw-r--r--script/workspace/workspace.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua
index ec30c9ea..94b1d9e5 100644
--- a/script/workspace/workspace.lua
+++ b/script/workspace/workspace.lua
@@ -200,7 +200,7 @@ local function loadFileFactory(root, progressData, isLibrary)
log.info('++++As library of:', root)
files.setLibraryPath(uri, root)
end
- files.setText(uri, text)
+ files.setText(uri, text, false)
else
files.remove(uri)
end