diff --git a/scripts/execute-vscode-sideload.ps1 b/scripts/execute-vscode-sideload.ps1 index 7352e36676..5d98c04fc8 100644 --- a/scripts/execute-vscode-sideload.ps1 +++ b/scripts/execute-vscode-sideload.ps1 @@ -21,12 +21,13 @@ $PackageJson = Get-Content "package.json" -Raw | ConvertFrom-Json # Install the extension code --install-extension "./kiota-$($PackageJson.version).vsix" -$VsCodeRootPath = (Resolve-Path "~/.vscode").Path - if ($WSL) { $Platform = "linux-x64" $VsCodeRootPath = (Resolve-Path "~/.vscode-server").Path } +else { + $VsCodeRootPath = (Resolve-Path "~/.vscode").Path +} $KiotaBin = "$VsCodeRootPath/extensions/ms-graph.kiota-$($PackageJson.version)/.kiotabin/$($PackageJson.kiotaVersion)/$Platform"