updated CI pipeline
This commit is contained in:
@@ -53,6 +53,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
luaVersion: ${{ env.LUA_VERSION }}
|
luaVersion: ${{ env.LUA_VERSION }}
|
||||||
|
|
||||||
|
- name: Install Dcs Plugins
|
||||||
|
uses: https://git.dutchie031.com/dutchie031/DcsMissionScriptingTools/github-actions/install-lua-addon@install-lua-addon/v1
|
||||||
|
with:
|
||||||
|
destination-path: "./.vscode/lua-addons" ##same as local so .luarc.json can be the same
|
||||||
|
|
||||||
- name: Install lua-language-server
|
- name: Install lua-language-server
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ./luals
|
mkdir -p ./luals
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
|
|
||||||
/dist
|
/dist
|
||||||
|
|
||||||
|
.vscode/lua-addons
|
||||||
.vscode/settings.json
|
.vscode/settings.json
|
||||||
**\settings.json
|
**\settings.json
|
||||||
+15
-5
@@ -4,10 +4,6 @@
|
|||||||
"version": "Lua 5.1"
|
"version": "Lua 5.1"
|
||||||
},
|
},
|
||||||
"workspace": {
|
"workspace": {
|
||||||
"library": [
|
|
||||||
"./src",
|
|
||||||
"./DcsTypes.lua"
|
|
||||||
],
|
|
||||||
"checkThirdParty": false
|
"checkThirdParty": false
|
||||||
},
|
},
|
||||||
"diagnostics": {
|
"diagnostics": {
|
||||||
@@ -17,7 +13,21 @@
|
|||||||
],
|
],
|
||||||
"severity": {
|
"severity": {
|
||||||
"undefined-field": "Warning",
|
"undefined-field": "Warning",
|
||||||
"unused-local": "Warning"
|
"unused-local": "Warning",
|
||||||
|
"unused-function": "Warning"
|
||||||
|
|
||||||
|
},
|
||||||
|
"groupFileStatus": {
|
||||||
|
"ambiguity": "Any",
|
||||||
|
"await": "Any",
|
||||||
|
"duplicate": "Any",
|
||||||
|
"global": "Any",
|
||||||
|
"luadoc": "Any",
|
||||||
|
"redefined": "Any",
|
||||||
|
"strict": "Any",
|
||||||
|
"type-check": "Any",
|
||||||
|
"unbalanced": "Any",
|
||||||
|
"unused": "Any"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"hint": {
|
"hint": {
|
||||||
|
|||||||
Vendored
+5
-4
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"sumneko.lua"
|
"dutchie031.dutchies-dcs-scripting-tools",
|
||||||
]
|
"sumneko.lua",
|
||||||
|
]
|
||||||
}
|
}
|
||||||
@@ -141,7 +141,9 @@ do
|
|||||||
end
|
end
|
||||||
|
|
||||||
---@param dir string @BaseDirectory
|
---@param dir string @BaseDirectory
|
||||||
---@return string
|
---@param startsWith string
|
||||||
|
---@param default string?
|
||||||
|
---@return string?
|
||||||
local getLastFileOrDefault = function(dir, startsWith, default)
|
local getLastFileOrDefault = function(dir, startsWith, default)
|
||||||
|
|
||||||
local latestFile, lastNumber = default, 0
|
local latestFile, lastNumber = default, 0
|
||||||
|
|||||||
Reference in New Issue
Block a user