summaryrefslogtreecommitdiff
path: root/script/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-07 03:24:05 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-07 03:24:05 +0800
commitd45984a61c94447c7c55ff5efffa9209c0b98d7c (patch)
treec2ec5780bad0b4bf506ab50c7ff6d28ec35a8b6d /script/vm
parent84441873f6b0e4a75ee9b9d96d88c5609c7a48dc (diff)
downloadlua-language-server-d45984a61c94447c7c55ff5efffa9209c0b98d7c.zip
update
Diffstat (limited to 'script/vm')
-rw-r--r--script/vm/doc.lua2
-rw-r--r--script/vm/manager.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/script/vm/doc.lua b/script/vm/doc.lua
index e52712d2..16ac0778 100644
--- a/script/vm/doc.lua
+++ b/script/vm/doc.lua
@@ -3,8 +3,6 @@ local guide = require 'parser.guide'
---@class vm
local vm = require 'vm.vm'
local config = require 'config'
-local collector = require 'core.collector' 'searcher'
-local define = require 'proto.define'
local globalMgr = require 'vm.global-manager'
---获取class与alias
diff --git a/script/vm/manager.lua b/script/vm/manager.lua
index 2068507f..67e8cc38 100644
--- a/script/vm/manager.lua
+++ b/script/vm/manager.lua
@@ -14,6 +14,8 @@ end
files.watch(function (ev, uri)
if ev == 'update' then
+ globalManager.dropUri(uri)
+ localManager.dropUri(uri)
local state = files.getState(uri)
if state then
globalManager.compileAst(state.ast)