summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-10-14 14:14:03 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-10-14 14:14:03 +0800
commitc38be0c4e0e409cd9c2531e7dddb5ef478f8093f (patch)
treea0aaa646a685ddea981d1f5c80ef2603b2b3c4c8
parentcdb2213b9f780b5fe6153ef706cf1ca17a0ed01f (diff)
downloadlua-language-server-c38be0c4e0e409cd9c2531e7dddb5ef478f8093f.zip
fix
-rw-r--r--debugger.lua2
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