From 272243e1219e35cce1d75de8f02f1a1641e971d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 21 Jul 2022 16:30:06 +0800 Subject: small fix --- script/filewatch.lua | 1 + script/provider/formatting.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/script/filewatch.lua b/script/filewatch.lua index 81e0dab9..ecc72255 100644 --- a/script/filewatch.lua +++ b/script/filewatch.lua @@ -69,6 +69,7 @@ function m.update() if not ev then break end + log.debug('filewatch:', ev, path) if not collect then collect = {} end diff --git a/script/provider/formatting.lua b/script/provider/formatting.lua index 7bb802e1..4ec5545a 100644 --- a/script/provider/formatting.lua +++ b/script/provider/formatting.lua @@ -57,7 +57,7 @@ function m.updateConfig(uri) local currentPath = furi.decode(currentUri) local editorConfigFSPath = fs.path(currentPath) / '.editorconfig' if fs.exists(editorConfigFSPath) then - loadedUris[uri] = editorConfigFSPath + loadedUris[currentUri] = editorConfigFSPath local status, err = codeFormat.update_config(updateType.Created, currentUri, editorConfigFSPath:string()) if not status and err then log.error(err) -- cgit v1.2.3