From 1efd8281c98b486e6ac679310d869a9780064d4c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= <sumneko@hotmail.com>
Date: Mon, 9 Nov 2020 21:52:19 +0800
Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E4=B8=BA=E5=8F=91=E5=B8=83=20beta=20?=
 =?UTF-8?q?=E7=89=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .vscode/settings.json     | 7 +++++--
 package/configuration.lua | 4 ++--
 publish.lua               | 2 +-
 server                    | 2 +-
 4 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/.vscode/settings.json b/.vscode/settings.json
index 93e0e54..d611641 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,3 +1,6 @@
 {
-    "Lua.runtime.version": "Lua 5.4"
-}
\ No newline at end of file
+    "Lua.runtime.version": "Lua 5.4",
+    "Lua.workspace.library": {
+        "server/script-beta": true
+    }
+}
diff --git a/package/configuration.lua b/package/configuration.lua
index 4f87d03..636794f 100644
--- a/package/configuration.lua
+++ b/package/configuration.lua
@@ -1,4 +1,4 @@
-local diagDefault = require 'constant.DiagnosticDefaultSeverity'
+local const = require 'proto.define'
 
 local config = {
     ["Lua.runtime.version"] = {
@@ -276,7 +276,7 @@ local config = {
 }
 
 local DiagSeverity = config["Lua.diagnostics.severity"].properties
-for name, level in pairs(diagDefault) do
+for name, level in pairs(const.DiagnosticDefaultSeverity) do
     DiagSeverity[name] = {
         scope = 'resource',
         type = 'string',
diff --git a/publish.lua b/publish.lua
index 3fa1891..52f4855 100644
--- a/publish.lua
+++ b/publish.lua
@@ -3,7 +3,7 @@ local rootPath = currentPath:gsub('[^/\\]-$', '')
 if rootPath == '' then
     rootPath = './'
 end
-loadfile(rootPath .. 'server/platform.lua')('script')
+loadfile(rootPath .. 'server/platform.lua')('script-beta')
 require 'bee'
 local fs = require 'bee.filesystem'
 local subprocess = require 'bee.subprocess'
diff --git a/server b/server
index fe6f111..af02487 160000
--- a/server
+++ b/server
@@ -1 +1 @@
-Subproject commit fe6f1115b5302ddd8ea7ed3e61a222d7294454d0
+Subproject commit af024872678d83e51a110ed96a8b6967acfecdc4
-- 
GitLab