Skip to content

Commit 997f936

Browse files
authored
Merge pull request #2937 from fesily/config--add-custom-repository-support-for-addonManager
config: add custom repository support for addonManager
2 parents 1753f07 + dec586e commit 997f936

File tree

7 files changed

+23
-0
lines changed

7 files changed

+23
-0
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<!-- Add all new changes here. They will be moved under a version at release -->
55
* `FIX` Improve type narrow with **literal alias type** during completion and signature help
66
* `NEW` Setting: `Lua.type.inferTableSize`: A Small Table array can be infered
7+
* `NEW` Add custom repository support for addonManager. New configuration setting: `Lua.addonManager.repositoryBranch` and `Lua.addonManager.repositoryPath`
78

89
## 3.12.0
910
`2024-10-30`

locale/en-us/setting.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
config.addonManager.enable =
44
"Whether the addon manager is enabled or not."
5+
config.addonManager.repositoryBranch =
6+
"Specifies the git branch used by the addon manager."
7+
config.addonManager.repositoryPath =
8+
"Specifies the git path used by the addon manager."
59
config.runtime.version =
610
"Lua runtime version."
711
config.runtime.path =

locale/ja-jp/setting.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
config.addonManager.enable = -- TODO: need translate!
44
"Whether the addon manager is enabled or not."
5+
config.addonManager.repositoryBranch = -- TODO: need translate!
6+
"Specifies the git branch used by the addon manager."
7+
config.addonManager.repositoryPath = -- TODO: need translate!
8+
"Specifies the git path used by the addon manager."
59
config.runtime.version = -- TODO: need translate!
610
"Lua runtime version."
711
config.runtime.path = -- TODO: need translate!

locale/pt-br/setting.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
config.addonManager.enable = -- TODO: need translate!
44
"Whether the addon manager is enabled or not."
5+
config.addonManager.repositoryBranch = -- TODO: need translate!
6+
"Specifies the git branch used by the addon manager."
7+
config.addonManager.repositoryPath = -- TODO: need translate!
8+
"Specifies the git path used by the addon manager."
59
config.runtime.version = -- TODO: need translate!
610
"Lua runtime version."
711
config.runtime.path = -- TODO: need translate!

locale/zh-cn/setting.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
config.addonManager.enable =
44
"是否启用扩展的附加插件管理器(Addon Manager)"
5+
config.addonManager.repositoryBranch =
6+
"指定插件管理器(Addon Manager)使用的git仓库分支"
7+
config.addonManager.repositoryPath =
8+
"指定插件管理器(Addon Manager)使用的git仓库路径"
59
config.runtime.version =
610
"Lua运行版本。"
711
config.runtime.path =

locale/zh-tw/setting.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
config.addonManager.enable = -- TODO: need translate!
44
"Whether the addon manager is enabled or not."
5+
config.addonManager.repositoryBranch = -- TODO: need translate!
6+
"Specifies the git branch used by the addon manager."
7+
config.addonManager.repositoryPath = -- TODO: need translate!
8+
"Specifies the git path used by the addon manager."
59
config.runtime.version =
610
"Lua執行版本。"
711
config.runtime.path =

script/config/template.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@ local template = {
415415
["Lua.docScriptPath"] = Type.String,
416416
-- VSCode
417417
["Lua.addonManager.enable"] = Type.Boolean >> true,
418+
["Lua.addonManager.repositoryPath"] = Type.String,
419+
["Lua.addonManager.repositoryBranch"] = Type.String,
418420
['files.associations'] = Type.Hash(Type.String, Type.String),
419421
-- copy from VSCode default
420422
['files.exclude'] = Type.Hash(Type.String, Type.Boolean) >> {

0 commit comments

Comments
 (0)