diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-21 10:38:05 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-21 10:38:05 +0800 |
commit | 359d8230f115375e148ad9828475dec90e852eb9 (patch) | |
tree | 00fc01a31bee0eb0f3ff240202bf30887f437abe /server | |
parent | a13c1293bdababe5b88b8200e4a09dc56948dcc5 (diff) | |
download | lua-language-server-359d8230f115375e148ad9828475dec90e852eb9.zip |
把编译错误抛出
Diffstat (limited to 'server')
-rw-r--r-- | server/src/service.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/service.lua b/server/src/service.lua index 4a5509e7..214e3f41 100644 --- a/server/src/service.lua +++ b/server/src/service.lua @@ -491,7 +491,7 @@ function mt:_createCompileTask() self:doDiagnostics(self._lastLoadedVM) local uri = self._needCompile[1] if uri then - self:compileVM(uri) + pcall(function () self:compileVM(uri) end) else uri = next(self._needDiagnostics) if uri then |