Skip to content

Commit

Permalink
feat(completions): update psc
Browse files Browse the repository at this point in the history
  • Loading branch information
abgox committed Jun 8, 2024
1 parent 09c3ade commit 8519e4a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion completions/psc/guid.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bcf5bcac-4ed4-4426-9b8d-28783ff6b78f
75148f58-98a2-4b6b-ad46-c63d78bbb03b
10 changes: 7 additions & 3 deletions completions/psc/language/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -1538,9 +1538,13 @@
"{{",
" if($json.config){",
"'<@Blue>---------- Special configuration ---------- ';",
"$config_list=$json.config | ForEach-Object { \"`n<@Magenta>$($_.name)<@Blue>: `nDefault Value: $($_.value)`n$($PSCompletions.replace_content($_.tip))\" };",
"$config_list -join \"`n\";",
"\"`n<@Blue>-------------------------------------------\";",
" $config_list=$json.config | ForEach-Object {",
" $config_value = $PSCompletions.config.comp_config.$completion.$($_.name);",
" $value = if($config_value -ne $null){ \"`nCurrent Value: $($config_value)\" };",
" \"`n<@Magenta>$($_.name)<@Blue>:$($value)`nDefault Value: $($_.value)`n$($PSCompletions.replace_content($_.tip))\" ",
" };",
" $config_list -join \"`n\";",
" \"`n<@Blue>-------------------------------------------\";",
"};",
"}}"
],
Expand Down
6 changes: 5 additions & 1 deletion completions/psc/language/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1540,7 +1540,11 @@
"{{",
"if($json.config){",
" '<@Blue>---------- 补全特殊配置 ---------- ';",
" $config_list=$json.config | ForEach-Object { \"`n<@Magenta>$($_.name)<@Blue>:`n默认值: $($_.value)`n$($PSCompletions.replace_content($_.tip))\" };",
" $config_list=$json.config | ForEach-Object {",
" $config_value = $PSCompletions.config.comp_config.$completion.$($_.name);",
" $value = if($config_value -ne $null){ \"`n当前值: $($config_value)\" };",
" \"`n<@Magenta>$($_.name)<@Blue>: $($value)`n默认值: $($_.value)`n$($PSCompletions.replace_content($_.tip))\"",
" };",
" $config_list -join \"`n\";",
" \"`n<@Blue>----------------------------------\";",
"};",
Expand Down

0 comments on commit 8519e4a

Please sign in to comment.