From 83a5cdc86fed194c453518e8ae3d1f58c6c84fdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 23 Sep 2019 21:46:20 +0800 Subject: =?UTF-8?q?=E9=A2=84=E8=AF=BB=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server-beta/src/proto/provider.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'server-beta/src/proto/provider.lua') diff --git a/server-beta/src/proto/provider.lua b/server-beta/src/proto/provider.lua index 01121a15..0b9c285e 100644 --- a/server-beta/src/proto/provider.lua +++ b/server-beta/src/proto/provider.lua @@ -8,11 +8,14 @@ local inte = require 'proto.interface' local workspace = require 'workspace' proto.on('initialize', function (params) - log.debug(util.dump(params)) + --log.debug(util.dump(params)) if params.workspaceFolders then local name = params.workspaceFolders[1].name local uri = params.workspaceFolders[1].uri workspace.init(name, uri) + task.create(function () + workspace.preload() + end) end return { capabilities = cap.initer, -- cgit v1.2.3