diff options
Diffstat (limited to 'server/src/service.lua')
-rw-r--r-- | server/src/service.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/src/service.lua b/server/src/service.lua index dbe24778..21bb6015 100644 --- a/server/src/service.lua +++ b/server/src/service.lua @@ -172,7 +172,7 @@ function mt:needCompile(uri) return end self._needCompile[uri] = true - self._needCompile[#self._needCompile+1] = uri + table.insert(self._needCompile, 1, uri) end function mt:saveText(uri, version, text) @@ -303,6 +303,9 @@ function mt:compileChain(child, parent) if not parentObj or not childObj then return end + if parentObj == childObj then + return + end if not parentObj.child then parentObj.child = {} |