Skip to content

Commit

Permalink
- applies review suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Biret <[email protected]>
  • Loading branch information
baywet committed May 3, 2024
1 parent 5a3a885 commit 79604e5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vscode/microsoft-kiota/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Context: you're a developer working on the extension, and you want to debug/step through the extension code.

1. run `dotnet publish ./src/kiota/kiota.csproj -p:PublishSingleFile=true -p:PublishReadyToRun=true --self-contained -c Release -r <rid> -o ./vscode/microsoft-kiota/.kiotabin/<versionInPackage.json>/<rid>/` where rid is one of `win-x64|linux-x64|osx-x64` and versionInPackage is the version field in `vscode/microsoft-kiota/package.json`.
1. run `dotnet publish ./src/kiota/kiota.csproj -p:PublishSingleFile=true -p:PublishReadyToRun=true --self-contained -c Release -r <rid> -o ./vscode/microsoft-kiota/.kiotabin/<kiotaVersionInPackage.json>/<rid>/` where rid is one of `win-x64|linux-x64|osx-x64` and kiotaVersionInPackage is the kiotaVersion field in `vscode/microsoft-kiota/package.json`.
1. in `vscode/microsoft-kiota` run `code . && npm i`
1. in the code instance that was opened at step 2, just press f5

Expand Down Expand Up @@ -39,7 +39,9 @@ At this point you have the code extension installed, but it needs the kiota exec

Refer to step 1 from the "debugging" section. The major difference will be the output path:

`~/.vscode/extensions/ms-graph.kiota-<versionInPackage.json>/.kiotabin/<versionInPackage.json>/<rid>/`
`~/.vscode/extensions/ms-graph.kiota-<versionInPackage.json>/.kiotabin/<kiotaVersionInPackage.json>/<rid>/`

Where kiotaVersionInPackage is the kiotaVersion field and versionInPackage is the version field in package.json.

> Note: the **.vscode** segment might change to **.vscode-server** if you're remoting to WSL.
Expand Down

0 comments on commit 79604e5

Please sign in to comment.