Skip to content

Commit 0200695

Browse files
committed
config: add custom repository support for addonManager
1 parent 3894968 commit 0200695

File tree

6 files changed

+22
-0
lines changed

6 files changed

+22
-0
lines changed

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.repository_branch =
6+
"Specifies the git branch used by the addon manager."
7+
config.addonManager.repository_path =
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.repository_branch = -- TODO: need translate!
6+
"Specifies the git branch used by the addon manager."
7+
config.addonManager.repository_path = -- 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.repository_branch = -- TODO: need translate!
6+
"Specifies the git branch used by the addon manager."
7+
config.addonManager.repository_path = -- 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.repository_branch =
6+
"指定插件管理器(Addon Manager)使用的git仓库分支"
7+
config.addonManager.repository_path =
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.repository_branch = -- TODO: need translate!
6+
"Specifies the git branch used by the addon manager."
7+
config.addonManager.repository_path = -- 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
@@ -414,6 +414,8 @@ local template = {
414414
["Lua.docScriptPath"] = Type.String,
415415
-- VSCode
416416
["Lua.addonManager.enable"] = Type.Boolean >> true,
417+
["Lua.addonManager.repository_path"] = Type.String,
418+
["Lua.addonManager.repository_branch"] = Type.String,
417419
['files.associations'] = Type.Hash(Type.String, Type.String),
418420
-- copy from VSCode default
419421
['files.exclude'] = Type.Hash(Type.String, Type.Boolean) >> {

0 commit comments

Comments
 (0)