diff --git a/.vscode/settings.json b/.vscode/settings.json index 93e0e5462662debfe977392850db52b17f7b2baa..d61164189a708c7e5243a86df2ef7d51e50268c9 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 4f87d033b493999a51e1b85ad282409bd1e10db0..636794f988a6f122cfca8dc073be503768df4f14 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 3fa189153e31b1d6190f9494ab0f798de94aad0b..52f4855b8126abfaa742e8b90cc07d16687e99b4 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 fe6f1115b5302ddd8ea7ed3e61a222d7294454d0..af024872678d83e51a110ed96a8b6967acfecdc4 160000 --- a/server +++ b/server @@ -1 +1 @@ -Subproject commit fe6f1115b5302ddd8ea7ed3e61a222d7294454d0 +Subproject commit af024872678d83e51a110ed96a8b6967acfecdc4