diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-10-14 14:14:03 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-10-14 14:14:03 +0800 |
commit | c38be0c4e0e409cd9c2531e7dddb5ef478f8093f (patch) | |
tree | a0aaa646a685ddea981d1f5c80ef2603b2b3c4c8 | |
parent | cdb2213b9f780b5fe6153ef706cf1ca17a0ed01f (diff) | |
download | lua-language-server-c38be0c4e0e409cd9c2531e7dddb5ef478f8093f.zip |
fix
-rw-r--r-- | debugger.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debugger.lua b/debugger.lua index 1fb9a8c5..135e97fc 100644 --- a/debugger.lua +++ b/debugger.lua @@ -10,7 +10,7 @@ for _, vscodePath in ipairs {'.vscode', '.vscode-insiders', '.vscode-server-insi log.debug('Search extensions at:', extensionPath:string()) if fs.exists(extensionPath) then - for path in extensionPath:list_directory() do + for path in fs.pairs(extensionPath) do if fs.is_directory(path) then local name = path:filename():string() if name:find('actboy168.lua-debug-', 1, true) then |