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