summaryrefslogtreecommitdiff
path: root/script/workspace
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-01-27 20:50:42 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-01-27 20:50:42 +0800
commitc2027c12ada4b588182c499d250fb69e55dd408b (patch)
treef820b9f44b84fc7d63ddab3b5f175dff91e716a9 /script/workspace
parent5f90b1c69ebb935dc46a55039fc3cf414e3be009 (diff)
downloadlua-language-server-c2027c12ada4b588182c499d250fb69e55dd408b.zip
clean up code
Diffstat (limited to 'script/workspace')
-rw-r--r--script/workspace/workspace.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua
index 76dbd195..07a53370 100644
--- a/script/workspace/workspace.lua
+++ b/script/workspace/workspace.lua
@@ -425,6 +425,10 @@ function m.awaitReady()
end
end
+function m.isReady()
+ return m.ready == true
+end
+
files.watch(function (ev, uri)
if ev == 'close'
and m.isIgnored(uri)