From a9bf4d58c069d06cc6b7f002e0347eb26b0451ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 17 Nov 2020 10:26:49 +0800 Subject: =?UTF-8?q?=E9=87=8D=E8=BD=BD=E5=B7=A5=E4=BD=9C=E5=8C=BA=E6=97=B6?= =?UTF-8?q?=E4=B9=9F=E8=A6=81=E6=B8=85=E7=A9=BA=E5=87=BD=E6=95=B0=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-beta/files.lua | 4 ++++ script-beta/workspace/workspace.lua | 1 + 2 files changed, 5 insertions(+) (limited to 'script-beta') diff --git a/script-beta/files.lua b/script-beta/files.lua index 2d2f00da..681245e3 100644 --- a/script-beta/files.lua +++ b/script-beta/files.lua @@ -77,6 +77,10 @@ function m.getLibraryPath(uri) return m.libraryMap[uri] end +function m.flushAllLibrary() + m.libraryMap = {} +end + --- 是否存在 ---@return boolean function m.exists(uri) diff --git a/script-beta/workspace/workspace.lua b/script-beta/workspace/workspace.lua index ce8cf161..08402bdb 100644 --- a/script-beta/workspace/workspace.lua +++ b/script-beta/workspace/workspace.lua @@ -298,6 +298,7 @@ function m.getRelativePath(uri) end function m.reload() + files.flushAllLibrary() files.removeAllClosed() rpath.flush() await.call(m.awaitPreload) -- cgit v1.2.3