Skip to content

Commit

Permalink
fix(completions): update psc
Browse files Browse the repository at this point in the history
  • Loading branch information
abgox committed Dec 19, 2024
1 parent ea572ac commit 941bc79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion completions/psc/guid.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
556e9d2e-e157-4bd9-8d97-d81af2905cbd
8163a1d6-65c8-4ba6-aa46-f9a2797f3f11
4 changes: 1 addition & 3 deletions completions/psc/language/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -1422,11 +1422,9 @@
"{{ ",
"$version_list=$PSCompletions.get_raw_content(\"$($PSCompletions.path.temp)\\CHANGELOG.json\") | ConvertFrom-Json;",
"$lang = if($PSCompletions.language -eq 'zh-CN'){ 'zh-CN' }else{ 'en-US' };",
"$num=1;",
"foreach($_ in $version_list) {",
" if($_.version -eq $PSCompletions.version){ break }",
" if($num){ \"<@Blue>$($_.version) : $($_.info.$($lang))\";$num = 0 }",
" else{ \"`n $($_.version) : $($_.info.$($lang))\" }",
" \"`n<@Blue>$($_.version) : $($_.info.$($lang))\"",
"}",
"}}\n",
"<@Cyan>Press <@Magenta>Enter<@Cyan> key to update or <@Magenta>other key(Without Ctrl)<@Cyan> to cancel!"
Expand Down
4 changes: 1 addition & 3 deletions completions/psc/language/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1431,11 +1431,9 @@
"{{ ",
"$version_list=$PSCompletions.get_raw_content(\"$($PSCompletions.path.temp)\\CHANGELOG.json\") | ConvertFrom-Json;",
"$lang = if($PSCompletions.language -eq 'zh-CN'){ 'zh-CN' }else{ 'en-US' };",
"$num=1;",
"foreach($_ in $version_list) {",
" if($_.version -eq $PSCompletions.version){ break }",
" if($num){ \"<@Blue>$($_.version) : $($_.info.$($lang))\";$num = 0 }",
" else{ \"`n $($_.version) : $($_.info.$($lang))\" }",
" \"`n<@Blue>$($_.version) : $($_.info.$($lang))\"",
"}",
"}}\n",
"<@Cyan>按下 <@Magenta>Enter(回车键)<@Cyan> 进行更新,<@Magenta>其他任意键(不包含 Ctrl 键)<@Cyan> 取消更新!"
Expand Down

0 comments on commit 941bc79

Please sign in to comment.