Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The docs update, mostly related to how to package the extension and h… #29

Merged
merged 4 commits into from
Feb 13, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.github
.idea
.vscode
.vscode-test
src
.eslintrc.cjs
.gitignore
.vscodeignore
package.json
package-lock.json
pre-commit.sh
tsconfig.json
18 changes: 14 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,17 @@ To debug the tests, in the Activity Bar select "Run and Debug" and make sure the

The Pyrsia extension is not available in the VS Code store yet, it's necessary to manually install the extension as described below.
karolh2000 marked this conversation as resolved.
Show resolved Hide resolved

### Package and Install (side-load extension)
### Install extension (side-load extension)

- Download the latest version of the extension (vsix file) from the [project release page](https://github.com/pyrsia/pyrsia-vscode-extension/releases).

- Close the IDE and install the extension using the `vsix` file downloaded in the previous step.

```sh
code --install-extension <PYRSIA_VSIX_FILE_PATH>
```

### Build package and install extension from the local repository (side-load extension)

- Install [Visual Studio Code Extensions](https://code.visualstudio.com/api/working-with-extensions/publishing-extension#vsce) with the following command.

Expand All @@ -55,7 +65,7 @@ The Pyrsia extension is not available in the VS Code store yet, it's necessary t
- In the extension repository folder package the extension as follows.
karolh2000 marked this conversation as resolved.
Show resolved Hide resolved

```sh
vsce package
vsce package --allow-star-activation --ignoreFile .vscodeignore --pre-release
```

- If the packaging was successful the last line of the VSCE logs should contain the `vsix` file path, for example:
Expand All @@ -64,12 +74,12 @@ The Pyrsia extension is not available in the VS Code store yet, it's necessary t
DONE Packaged: /home/joed/repositories/pyrsia-vscode-extension/pyrsia-integration-0.0.1.vsix (960 files, 2.2MB)
```

- Copy the `vsix` file path and install the extension as follows.
- Close the IDE and install the extension using the `vsix` file path from the previous step.

```sh
code --install-extension <PYRSIA_VSIX_FILE_PATH>
```

### Uninstall (side-load)

- Find the extension in the list of the extensions (look for "pyrsia", for example `undefined_publisher.pyrsia-integration`).
karolh2000 marked this conversation as resolved.
Show resolved Hide resolved
Expand Down