Skip to content

Commit

Permalink
Merge pull request #5214 from sebastienlevert/sebastienlevert/vscode-wsl
Browse files Browse the repository at this point in the history
Fixing vscode vs vscode-server
  • Loading branch information
baywet authored Aug 22, 2024
2 parents 9b94384 + d6f40d7 commit 75f03bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/execute-vscode-sideload.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 75f03bf

Please sign in to comment.