diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-09-23 11:42:57 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-09-23 11:42:57 +0800 |
commit | dc1a5bb4215a32ad16697b48d74585242c685217 (patch) | |
tree | 7cd48130071795ce5c3e316328ab7eab78b690ad /script-beta/provider | |
parent | 9990b45689cfeb4a0b24fa9e6bbc6cc631910d22 (diff) | |
download | lua-language-server-dc1a5bb4215a32ad16697b48d74585242c685217.zip |
修正一些bug
Diffstat (limited to 'script-beta/provider')
-rw-r--r-- | script-beta/provider/provider.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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 |