From 9948129ec4acfca9e1a83da1fe8ab9d823d75f33 Mon Sep 17 00:00:00 2001 From: sumneko Date: Mon, 13 May 2019 14:31:08 +0800 Subject: =?UTF-8?q?=E6=98=AF=E4=B8=8D=E6=98=AFlua=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E8=BF=98=E6=98=AF=E5=BE=97=E5=8D=95=E7=8B=AC=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/workspace.lua | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'server/src/workspace.lua') diff --git a/server/src/workspace.lua b/server/src/workspace.lua index c69b6399..c701bfa9 100644 --- a/server/src/workspace.lua +++ b/server/src/workspace.lua @@ -141,14 +141,6 @@ function mt:buildScanPattern() end end end - -- config.files.associations - pattern[#pattern+1] = '*.*' - pattern[#pattern+1] = '!*.lua' - for k, v in pairs(config.other.associations) do - if fileNameEq(v, 'lua') then - pattern[#pattern+1] = '!' .. k - end - end return pattern end @@ -184,6 +176,9 @@ function mt:scanFiles() log.debug(...) elseif mode == 'path' then local path = fs.path(...) + if not self:isLuaFile(path) then + return + end self._loadFileRequest:push(path:string()) count = count + 1 elseif mode == 'stop' then -- cgit v1.2.3