Actualiser vscode/install.ps1
This commit is contained in:
@@ -55,8 +55,8 @@ Param(
|
|||||||
[string]$Architecture = "64-bits",
|
[string]$Architecture = "64-bits",
|
||||||
|
|
||||||
[parameter()]
|
[parameter()]
|
||||||
[ValidateSet("stable","insider")]
|
[ValidateSet('Stable-System', 'Stable-User', 'Insider-System', 'Insider-User')]
|
||||||
[string]$BuildEdition = "stable",
|
[string]$BuildEdition = "Stable-System",
|
||||||
|
|
||||||
[Parameter()]
|
[Parameter()]
|
||||||
[ValidateNotNull()]
|
[ValidateNotNull()]
|
||||||
@@ -70,7 +70,9 @@ Param(
|
|||||||
'ms-azuretools.vscode-azure-github-copilot','hashicorp.terraform','redhat.ansible','ms-vscode-remote.remote-ssh', `
|
'ms-azuretools.vscode-azure-github-copilot','hashicorp.terraform','redhat.ansible','ms-vscode-remote.remote-ssh', `
|
||||||
'ms-vscode-remote.remote-ssh-edit','ms-vscode.remote-explorer','vscode-icons-team.vscode-icons'),
|
'ms-vscode-remote.remote-ssh-edit','ms-vscode.remote-explorer','vscode-icons-team.vscode-icons'),
|
||||||
|
|
||||||
[switch]$LaunchWhenDone
|
[switch]$LaunchWhenDone,
|
||||||
|
|
||||||
|
[switch]$EnableContextMenus
|
||||||
)
|
)
|
||||||
|
|
||||||
If (($PSVersionTable.PSVersion.Major -le 5) -or $IsWindows) {
|
If (($PSVersionTable.PSVersion.Major -le 5) -or $IsWindows) {
|
||||||
@@ -93,7 +95,7 @@ If (($PSVersionTable.PSVersion.Major -le 5) -or $IsWindows) {
|
|||||||
Write-host "32-bits"
|
Write-host "32-bits"
|
||||||
If ((Get-CimInstance -ClassName Win32_OperatingSystem).OSArchitecture -eq "32 bits"){
|
If ((Get-CimInstance -ClassName Win32_OperatingSystem).OSArchitecture -eq "32 bits"){
|
||||||
#$codePath = $env:ProgramFiles
|
#$codePath = $env:ProgramFiles
|
||||||
$codePath = $env:USERPROFILE
|
$codePath = ${env:ProgramFiles}
|
||||||
$bitVersion = "win32-arm64-user"
|
$bitVersion = "win32-arm64-user"
|
||||||
}
|
}
|
||||||
Else {
|
Else {
|
||||||
|
Reference in New Issue
Block a user