|
9 | 9 | ### Steps to test the extension out in VS Code
|
10 | 10 |
|
11 | 11 | 1. Open this directory in VS Code
|
12 |
| -2. Select the `Run->Start Debugging` menu option (or press F5). |
| 12 | +2. Select the `Run->Start Debugging` menu option (or press F5). |
13 | 13 |
|
14 | 14 | ### Steps to build a release version of the extension
|
15 | 15 |
|
|
23 | 23 | #### Prerequisites
|
24 | 24 |
|
25 | 25 | - Bump the `version` in `package.json`.
|
| 26 | +- Make sure the `osohq/polar-grammar` submodule is updated: `git submodule update --remote`. |
26 | 27 | - Make sure the PR is merged into `main` and you've pulled down the latest for `main` after merging.
|
27 | 28 | - Download oso.vsix from GitHub:
|
28 |
| - - Navigate to the [Actions][https://github.com/osohq/oso-vscode-extension/actions] tab. |
29 |
| - - In the sidebar, select "Release VSCode Extension" from the list of workflows. |
30 |
| - - Click on the most recent workflow run that you created. |
31 |
| - - Scroll down to the Artifacts section and download `oso_vscode_extension.zip` which contains `oso.vsix`. |
32 |
| - - Move `oso.vsix` to the `oso-vscode-extension` directory. |
33 |
| -- Run `make submodules` in the `oso-vscode-extension` directory (if you haven't already done so in this project). |
| 29 | + - Navigate to the [Actions][https://github.com/osohq/oso-vscode-extension/actions] tab. |
| 30 | + - In the sidebar, select "Release VSCode Extension" from the list of workflows. |
| 31 | + - Click on the most recent workflow run that you created. |
| 32 | + - Scroll down to the Artifacts section and download `oso_vscode_extension.zip` which contains `oso.vsix`. |
| 33 | + - Move `oso.vsix` to the `oso-vscode-extension` directory. |
34 | 34 | - Run `yarn` (if you haven't already done so in this project).
|
35 | 35 | - Login to Visual Studio Marketplace (the PAT is in 1Password: VSCode publish
|
36 | 36 | api key):
|
37 | 37 |
|
38 |
| - ```console |
39 |
| - yarn vsce login osohq |
40 |
| - ``` |
| 38 | + ```console |
| 39 | + yarn vsce login osohq |
| 40 | + ``` |
41 | 41 |
|
42 | 42 | #### Publish to Visual Studio Marketplace
|
43 | 43 |
|
|
48 | 48 | - Run `export PAT={the PAT is in 1Password: Open VSX}`.
|
49 | 49 | - Publish to the Open VSX Registry:
|
50 | 50 |
|
51 |
| - ```bash |
52 |
| - yarn ovsx publish -p ${PAT} oso.vsix |
53 |
| - ``` |
| 51 | + ```bash |
| 52 | + yarn ovsx publish -p ${PAT} oso.vsix |
| 53 | + ``` |
0 commit comments