summaryrefslogtreecommitdiff
path: root/script/meta/bee/filewatch.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-02-06 16:04:14 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-02-06 16:04:14 +0800
commit4e565235c61d1ccb7eb72dc024100ac8dfc0225b (patch)
tree106aee4aea3355b13bacb48d688e150325f16b7c /script/meta/bee/filewatch.lua
parent5eee353af12123fe3641e2ae01eaa2ff413da27d (diff)
downloadlua-language-server-4e565235c61d1ccb7eb72dc024100ac8dfc0225b.zip
move filewatch into C
#1872
Diffstat (limited to 'script/meta/bee/filewatch.lua')
-rw-r--r--script/meta/bee/filewatch.lua32
1 files changed, 32 insertions, 0 deletions
diff --git a/script/meta/bee/filewatch.lua b/script/meta/bee/filewatch.lua
new file mode 100644
index 00000000..b5211355
--- /dev/null
+++ b/script/meta/bee/filewatch.lua
@@ -0,0 +1,32 @@
+---@meta
+
+---@class bee.filewatch.instance
+local instance = {}
+
+---@param path string
+function instance:add(path)
+end
+
+---@param enable boolean
+---@return boolean
+function instance:set_recursive(enable)
+end
+
+---@param enable boolean
+---@return boolean
+function instance:set_follow_symlinks(enable)
+end
+
+---@param callback? fun(path: string):boolean
+---@return boolean
+function instance:set_filter(callback)
+end
+
+---@class bee.filewatch
+local fw = {}
+
+---@return bee.filewatch.instance
+function fw.create()
+end
+
+return fw