From dc1a5bb4215a32ad16697b48d74585242c685217 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 23 Sep 2020 11:42:57 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E4=BA=9Bbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-beta/provider/provider.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'script-beta/provider') diff --git a/script-beta/provider/provider.lua b/script-beta/provider/provider.lua index e4ba8e5c..656ff278 100644 --- a/script-beta/provider/provider.lua +++ b/script-beta/provider/provider.lua @@ -12,6 +12,7 @@ local markdown = require 'provider.markdown' local client = require 'provider.client' local furi = require 'file-uri' local pub = require 'pub' +local fs = require 'bee.filesystem' local function updateConfig() local configs = proto.awaitRequest('workspace/configuration', { @@ -134,7 +135,7 @@ proto.on('workspace/didChangeWatchedFiles', function (params) files.setText(uri, pub.awaitTask('loadFile', uri)) else local path = furi.decode(uri) - local filename = path:filename():string() + local filename = fs.path(path):filename():string() -- 排除类文件发生更改需要重新扫描 if files.eq(filename, '.gitignore') or files.eq(filename, '.gitmodules') then -- cgit v1.2.3