Merge pull request #64 from continuedev/docs-v0

docs v0
This commit is contained in:
Ty Dunn 2023-06-05 09:35:25 +02:00 • committed by GitHub
commit ffdfad51ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 2750 additions and 357 deletions

View file

@ -19,28 +19,15 @@
### GitHub Codespaces
Learn how to try the GitHub Codespaces Demo [here](https://continue.dev/docs/docs/getting-started)
Learn how to try the GitHub Codespaces Demo [here](https://continue.dev/docs/getting-started)
### VS Code
Learn how to install locally in VS Code [here](https://continue.dev/docs/docs/install)
## Walkthroughs
- [Use the GUI](https://continue.dev/walkthroughs/use-the-gui.md)
- [Use a recipe](https://continue.dev/walkthroughs/use-a-recipe.md)
- [Create a recipe](https://continue.dev/walkthroughs/create-a-recipe.md)
- [Share a recipe](https://continue.dev/walkthroughs/share-a-recipe.md)
Learn how to install locally in VS Code [here](https://continue.dev/docs/install)
## How to contribute
### Option 1: Create a recipe and share it with the community
Follow [these steps](https://continue.dev/walkthroughs/share-a-recipe.md) to share a recipe you have created :)
### Option 2: Open a [new GitHub Issue](https://github.com/continuedev/continue/issues/new) or comment on [an existing one](https://github.com/continuedev/continue/issues)
Let us know what you would like to contribute and we will help you make it happen!
Open a [new GitHub Issue](https://github.com/continuedev/continue/issues/new) or comment on [an existing one](https://github.com/continuedev/continue/issues). Let us know what you would like to contribute there, and we will help you make it happen!
## Install from source
@ -68,12 +55,13 @@ cd continue/extension/scripts && python3 install_from_source.py
# Understanding the codebase
- [Continue Server README](./continuedev): learn about the core of Continue, which can be downloaded as a [PyPI package](https://pypi.org/project/continuedev/)
- [VS Code Extension README](./extension/src): learn about the capabilities of our extension—the first implementation of Continue's IDE Protocol—which makes it possible to use use Continue in VS Code and GitHub Codespaces
- [Continue Server README](./continuedev/README.md): learn about the core of Continue, which can be downloaded as a [PyPI package](https://pypi.org/project/continuedev/)
- [VS Code Extension README](./extension/README.md): learn about the capabilities of our extension—the first implementation of Continue's IDE Protocol—which makes it possible to use use Continue in VS Code and GitHub Codespaces
- [Continue GUI README](./extension/react-app/): learn about the React app that lets users interact with the server and is placed adjacent to the text editor in any suppported IDE
- [Schema README](./schema): learn about the JSON Schema types generated from Pydantic models, which we use across the `continuedev/` and `extension/` directories
- [Continue Docs README](./docs): learn how our [docs](https://continue.dev/docs) are written and built
- [How to debug the VS Code Extension README](./extension/src/README.md): learn how to set up the VS Code extension, so you can debug it
# License
[Apache 2.0 © 2023 Continue Dev, Inc.](./LICENSE)
[Apache 2.0 © 2023 Continue Dev, Inc.](./LICENSE)

View file

@ -6,13 +6,14 @@ Continue is a Python library for automating repetitive sequences of software dev
## Continue Server
The Continue server acts as a bridge between the Continue React app and your IDE, running your recipes and acting on the codebase. Start it by running the following commands:
The Continue server acts as a bridge between the Continue React app and your IDE, running your recipes and acting on the codebase.
- `cd continuedev`
- Make sure packages are installed with `poetry install`
- `poetry shell`
- `cd ..`
- `python3 -m continuedev.src.continuedev.server.main`
Start it by running the following commands:
1. `cd continuedev`
2. Make sure packages are installed with `poetry install`
3. `poetry shell`
4. `cd ..`
5. `python3 -m continuedev.src.continuedev.server.main`
## Scripts

View file

@ -1,5 +1,5 @@
from abc import ABC, abstractmethod
from typing import Coroutine, List
from typing import Coroutine, List, Union
from .config import ContinueConfig
from ..models.filesystem_edit import FileSystemEdit
@ -45,7 +45,7 @@ class AbstractContinueSDK(ABC):
pass
@abstractmethod
async def run(self, commands: List[str] | str, cwd: str = None):
async def run(self, commands: Union[List[str], str], cwd: str = None):
pass
@abstractmethod
@ -57,7 +57,7 @@ class AbstractContinueSDK(ABC):
pass
@abstractmethod
async def add_file(self, filename: str, content: str | None):
async def add_file(self, filename: str, content: Union[str, None]):
pass
@abstractmethod

View file

@ -73,7 +73,7 @@ class ContinueSDK(AbstractContinueSDK):
async def wait_for_user_confirmation(self, prompt: str):
return await self.run_step(WaitForUserConfirmationStep(prompt=prompt))
async def run(self, commands: List[str] | str, cwd: str = None):
async def run(self, commands: Union[List[str], str], cwd: str = None):
commands = commands if isinstance(commands, List) else [commands]
return await self.run_step(ShellCommandsStep(cmds=commands, cwd=cwd))
@ -93,7 +93,7 @@ class ContinueSDK(AbstractContinueSDK):
file_edit = FileEdit.from_append(filepath, previous_content, content)
await self.ide.applyFileSystemEdit(file_edit)
async def add_file(self, filename: str, content: str | None):
async def add_file(self, filename: str, content: Union[str, None]):
filepath = await self._ensure_absolute_path(filename)
return await self.run_step(FileSystemEditStep(edit=AddFile(filepath=filepath, content=content)))

View file

@ -40,10 +40,10 @@ class FileSystemEditStep(ReversibleStep):
class ShellCommandsStep(Step):
cmds: List[str]
cwd: str | None = None
cwd: Union[str, None] = None
name: str = "Run Shell Commands"
_err_text: str | None = None
_err_text: Union[str, None] = None
async def describe(self, models: Models) -> Coroutine[str, None, None]:
if self._err_text is not None:

29
docs/docs/catalog.md Normal file
View file

@ -0,0 +1,29 @@
# Catalog
## Steps
### EditCodeStep
Provide a prompt and a list of file ranges to be edited by a language model
### ManualEditStep
Tracks all user edits in the IDE so that they can be reversed along with other steps
### CreateTableStep
Create a table in TypeORM
### MigrationStep
Create and run an alembic migration
### AnswerQuestionChromaStep
Type `/ask` and ask any question about your whole codebase. The Chroma embeddings store will help find important snippets and answer your question
## Recipes
### WritePytestsRecipe
Write unit tests for this file

View file

@ -1,3 +0,0 @@
# config.json
**TODO: Need to explain this**

View file

@ -0,0 +1,7 @@
# Credentials
**TODO: where to add / edit / remove API keys**
Recipes on per model basis (make sure you have added API key)
Models from OpenAI will require an API key

View file

@ -18,6 +18,6 @@ Just a class with a "complete" method. Right now have HuggingFaceInferenceAPI an
### `gpt-4`
### `gpt-turbo-3.5`
### `gpt-3.5-turbo`
### `StarCoder`

View file

@ -12,4 +12,4 @@ When enough steps are strung together they become a recipe. Can kick off with sl
- Although technically just a step itself, since they also subclass the Step class, recipes differentiate themselves from normal steps by ending their name with `Recipe` by
- Technically, everything is a step since everything subclasses the step class. Steps can be composed together. Once steps are composed into a workflow that developers use and share with others, that step is called a recipe and, by convention, it ends with Recipe to signal this
- Actually just a step that is composed of only other steps / recipes.
- Actually just a step that is composed of only other steps / recipes.

View file

@ -32,44 +32,4 @@ the code that should run when the step is reversed
### `modify` (optional)
the code that should run when the step is rerun with feedback
**TODO: Move the below list / description of all steps and recipes to the place where people will be able to use, update, share them**
## Steps & recipes
### Core
#### EditCodeStep
Provide a prompt and a list of file ranges to be edited by a language model.
### ManualEditStep
A core step that tracks all user edits in the IDE so that they can be reversed along with other steps
## Community
### CreateTableStep
Create a table in TypeORM
### MigrationStep
Create and run an alembic migration
#### Parameters
- `edited_file`:
### WritePytestsRecipe
Write unit tests for this file.
#### Parameters
- for_filepath (required): the path of the file that unit tests should be created for
### AnswerQuestionChromaStep
Type `/ask` and ask any question about your whole codebase. The Chroma embeddings store will help find important snippets and answer your question.
the code that should run when the step is rerun with feedback

View file

@ -12,16 +12,8 @@ We don't want to waste your time with install and env setup before you try Conti
2. Select the `Create new codespace` button and wait 30-90 seconds while it launches and installs the Continue extension. Once complete, it should look like this:
**TODO: Adding image of Codespaces once its ready to be used**
3. Read the `Getting Started` section of the `README.md` file that has been opened in your codespace, which you can also find [here](https://github.com/continuedev/continue-codespaces-demo/blob/main/README.md)
**TODO: Nate to add a screenshot of what Codespaces + Continue looks like when it is ready**
## Next Steps
If you would like to use Continue locally, you can follow [these steps](./install.md) to install it in VS Code.
If you'd like to continue exploring in GitHub Codespaces, you can learn more with our walkthroughs:
- [Use the GUI](./walkthroughs/use-the-gui.md)
- [Use a recipe](./walkthroughs/use-a-recipe.md)
- [Create a recipe](./walkthroughs/create-a-recipe.md)
- [Share a recipe](./walkthroughs/share-a-recipe.md)
Read the `Getting Started` section of the `README.md` file that has been opened in your codespace, which you can also find [here](https://github.com/continuedev/continue-codespaces-demo/blob/main/README.md)

View file

@ -1,15 +1,13 @@
# How `Continue` works
# How Continue works
![Continue Architecture Diagram](/img/continue-architecture.png)
## Overview
The `Continue` library consists of an [SDK](./concepts/sdk.md), a [GUI](./concepts/gui.md), and a [Server](./concepts/server.md) that brings everything together.
1. The [SDK](./concepts/sdk.md) gives you access to the tools (e.g. open a directory, edit a file, call a model, etc.) needed to define steps that integrate LLMs into your IDE and workflows.
2. The [GUI](./concepts/gui.md) lets you transparently review every automated step, providing the opportunity to undo and rerun any that ran incorrectly.
3. The [Server](./concepts/server.md) holds the main event loop, responsible for connecting the IDE, SDK, and GUI together as well as deciding which steps to take next.
3. The [Server](./concepts/server.md) is responsible for connecting the IDE, SDK, and GUI together as well as deciding which steps to take next.
Continue connects any IDE (Integrated Development Environment) (e.g. VS Code, GitHub Codespaces, PyCharm, Replit, etc.) to the Continue Server, which take actions in the code editor as instructed by recipes that are run by a user through the GUI.
The Continue Server take actions in the IDE code editor as directed by recipes, which are written using the Continue SDK and run by a user using the Continue GUI.

View file

@ -12,7 +12,9 @@ If you want to try Continue before installing locally, check out the [GitHub Cod
3. Once you do this, you will see a message in the bottom right hand corner of VS Code that says `Setting up Continue extension...`. After 30-90 seconds, the Continue extension will then open up. It should look like this when it is complete:
**TODO: Add link to screenshot of what it looks like after install has completed**
**TODO: Nate to add a screenshot of what Codespaces + Continue looks like when it is ready**
You can also open the Continue GUI with `cmd+shift+p` on Mac / `ctrl+shift+p` on Windows and then selecting `Continue: Open GUI`
:::note
If you would like to install Continue from source, please [follow the instructions](https://github.com/continuedev/continue/blob/main/README.md) in the repo README.
@ -20,8 +22,7 @@ If you would like to install Continue from source, please [follow the instructio
## Next steps
Now that you have installed locally in VS Code, you can learn more with our walkthroughs:
- [Use the GUI](./walkthroughs/use-the-gui.md)
- [Use a recipe](./walkthroughs/use-a-recipe.md)
- [Create a recipe](./walkthroughs/create-a-recipe.md)
- [Share a recipe](./walkthroughs/share-a-recipe.md)
**TODO: Nate to update VS Code install to have the same getting started as Codespaces**
Read the `Getting Started` section of the `README.md` file that has been opened in VS Code,
which you can also find [here](https://github.com/continuedev/continue-codespaces-demo/blob/main/README.md)

View file

@ -7,14 +7,14 @@
1. Try out Continue in the [GitHub Codespaces Demo](./getting-started.md)
2. Install Continue packaged as a [VS Code extension](./install.md)
## What is `Continue`?
## What is Continue?
**Continue is the open-source library for accelerating software development with language models**
You define the scenarios where Large Language Models ([LLMs](./concepts/llm.md)) like GPT-4 and StarCoder should act as an autopilot, helping you complete software development tasks. You use [recipes](./concepts/recipe.md) created by others to automate more steps in your workflows. If a [recipe](./concepts/recipe.md) does not exist or work exactly like you want, you can use the [Continue SDK](./concepts/sdk.md) to create custom [steps](./concepts/step.md) and compose them into personalized [recipes](./concepts/recipe.md). Whether you are using a [recipe](./concepts/recipe.md) created by yourself or someone else, you can review, reverse, and rerun [steps](./concepts/step.md) with the [Continue GUI](./concepts/gui.md), which helps you guide the work done by LLMs and learn when to use and trust them.
You define the scenarios where Large Language Models LLMs like GPT-4 and StarCoder should act as an autopilot, helping you complete software development tasks. You use recipes created by others to automate more steps in your workflows. If a recipe does not exist or work exactly like you want, you can use the Continue SDK to create custom steps and compose them into personalized recipes. Whether you are using a recipe created by yourself or someone else, you can review, reverse, and rerun steps with the Continue GUI, which helps you guide the work done by LLMs and learn when to use and trust them.
## Why do developers use `Continue`?
## Why do developers use Continue?
Many developers have begun to use models like [GPT-4](https://openai.com/research/gpt-4) through [ChatGPT](https://openai.com/blog/chatgpt) while coding; however, the experience is painful because of how much manual copying, pasting, and editing is required to supply them with context and incorporate the generated solutions into your codebase. Continue eliminates this pain by deeply integrating LLMs into your IDE amd workflows.
Many developers have begun to use [GPT-3.5](https://platform.openai.com/docs/models/gpt-3-5) and [GPT-4](https://openai.com/research/gpt-4) through [ChatGPT](https://openai.com/blog/chatgpt) while coding; however, the experience is painful because of how much manual copying, pasting, and editing is required to provide the necessary context and incorporate the generated solutions into your codebase. Continue eliminates this pain by deeply integrating LLMs into your IDE amd workflows.
Continue accelerates how developers build, ship, and maintain software, while giving them the control to define when LLMs should take actions and the confidence to trust LLMs. In short, it enables developers to do what they have always done: work together to create better and better abstractions that make it easier and easier to automate the repetitive work that people want computers to do.

View file

@ -2,22 +2,22 @@
## Overview
`Continue` collects and reports **anonymous** usage information. This data is essential to understanding how we should improve the library. You can opt out of it at any time.
Continue collects and reports **anonymous** usage information. This data is essential to understanding how we should improve the library. You can opt out of it at any time.
We use [Posthog](https://posthog.com/), an open source platform for product analytics, to collect and store the data. You can review the code [here](https://github.com/continuedev/continue/tree/main/continuedev/src/continuedev/libs/util/telemetry.py).
## What we track
We track the following...
- Steps that are run and their parameters
We track the steps that are run and their parameters.
## How to opt out
**TODO: Define where the root of your workspace**
Create a `.continue/config.json` file in the root of your workspace and add the following:
There is a `.continue` directory, which contains a `config.json` file that looks like this:
```json
{
"allow_anonymous_telemetry": false
"allow_anonymous_telemetry": true
}
```
You can turn off anonymous telemetry by changing the value of `allow_anonymous_telemetry` to `false`.

View file

@ -11,8 +11,14 @@ Points to include
- How to create recipe
- Using models
1. Create a recipe here
continue/continuedev/src/continuedev/recipes
## 1. Create a step
### a. Start by creating a subclass of Step
You should first consider what will be the parameters of your recipe. These are defined as attributes in the step, as with `input_file_path: str` below

View file

@ -2,8 +2,20 @@
**TODO: Describe step-by-step how to share a recipe**
Points to include
- Where to create recipes
- What you need to contribute them (README, style, etc)
- How to push them
- How to get them reviewed
## 1. Verify checklist
- [] Make sure you added them in right spot. All of the recipes are located in this part of the codebase here
- [] Make sure to add a README
- [] Make sure you have a main recipe file
## 2. Push to codebase (fork codebase first?)
## 3. Ask for review
Ask for review from @tydunn or @natesesti
## 4. Address review feedback
Push your changes
## 5. We approve

View file

@ -1,16 +1,43 @@
# Use a recipe
**TODO: Describe how to use a recipe**
## Select a recipe that you want to use
Points to include
- How to get recipes
- Slash commands
- READMEs with instructions for each recipe?
- Using GUI
- Reviewing
- Reversing
- Rerunning
- Follow the instructions
- Customizing recipe
- Recipes on per model basis (make sure you have added API key)
- Creating a recipe from scratch (link)
You can learn more about the recipes that exist and how they work in the [Catalog](../catalog.md)
All of the recipes are located in this part of the codebase here
## Open the file you want the LLM to edit
At the moment, we only support editing the file open and focused in the code editor, so you need to make sure that is
user input step
demopolicy decides what to do
default step, starcoder to edit the current open file
## Use its slash command to start the recipe
Every recipe can be triggered by the user using its slash command. For example, `/comment` will trigger.
add to the if / else with `/` commands
## Review the steps and take any required manual actions
Make sure that the recipe works as expected
follow any instructions
## Reverse if something goes wrong
Click this button
## Rerun
add feedback to modify how it runs
LLMs are non-determistic, so rerunning again might
## Customizing the recipe
If the recipe does not work exactly like you want, you can adjust it. Find the code for recipe here and then learn how to [create a recipe](./create-a-recipe.md) understand what you need to do to get it work like you want
## Creating your own recipe
Learn how to [create a recipe](./create-a-recipe.md)

View file

@ -1,12 +1,37 @@
# Use the GUI
**TODO: Describe how to use the `Continue GUI`**
## How to edit a file using LLMs
Points to include
- Recipes
- Steps
- Single turn at the moment
- Opening the (set of) file(s) you want to edit
- Then giving natural language instructions
- Reversing
- Modifying with feedback
1. Open the file you want to edit
2. Give instructions in natural language for how you want the file to be edited
3. Press the `Continue` button
4. Review the explaination of what was edited and why on the Continue GUI
5. Check the code that was edited by the LLM in the code editor
:::note
At the moment, we only supporting the file that is opened and focused on in the code editor
:::
:::note
Context is not carried across steps at the moment, so you will need to repeat any information from previous steps if you want the LLM in the current step to be aware of it
:::
## Review actions taken
Whether you are using a recipe or not, you will want to review the explainations of what the LLM did and check the code that it generated. You are ultimately responsible for any code that you ship, even if it was written by a LLM.
## Reverse button
undo things done by steps
## Rerun steps and recipes
continue button (with optional modify)
## How to use recipes
You can learn how to use recipes [here](./use-a-recipe.md)

View file

@ -17,34 +17,8 @@ const sidebars = {
"intro",
"getting-started",
"install",
"catalog",
"how-continue-works",
{
type: "category",
label: "Walkthroughs",
items: [
"walkthroughs/use-the-gui",
"walkthroughs/use-a-recipe",
"walkthroughs/create-a-recipe",
"walkthroughs/share-a-recipe",
],
},
{
type: "category",
label: "Concepts",
items: [
"concepts/autopilot",
"concepts/continue-json",
"concepts/gui",
"concepts/history",
"concepts/ide",
"concepts/llm",
"concepts/policy",
"concepts/recipe",
"concepts/sdk",
"concepts/server",
"concepts/step",
],
},
"telemetry",
],
};

View file

@ -5,3 +5,5 @@ This is the Continue VS Code Extension. Its primary jobs are
1. Implement the IDE side of the Continue IDE protocol, allowing a Continue server to interact natively in an IDE. This happens in `src/continueIdeClient.ts`.
2. Open the Continue React app in a side panel. The React app's source code lives in the `react-app` directory. The panel is opened by the `continue.openContinueGUI` command, as defined in `src/commands.ts`.
3. Run a Continue server in the background, which connects to both the IDE protocol and the React app. The server is launched in `src/activation/environmentSetup.ts` by calling Python code that lives in `scripts/` (unless extension settings define a server URL other than localhost:8000, in which case the extension will just connect to that).
1. Open Continue

View file

@ -1,12 +1,12 @@
# Continue
**[Continue](https://continue.dev/docs) is the open-source library for accelerating software development with language models**
**[Continue](https://continue.dev/docs/) is the open-source library for accelerating software development with language models**
The Continue VS Code extension lets you make edits with natural langauge, ask questions of your codebase, automatically generate unit tests, and more. Beyond the built-in functionality, you can easily write your own recipes to automate the most repetitive sequences of tasks in your workflow.
You can use Continue to use and create recipes that automate the most repetitive sequences of tasks in your workflows.
## Getting Started
Get started by opening the command pallet with cmd+shift+p and then selecting Continue: Open Continue GUI.
After install is complete, the Continue extension should automatically open. You can also open it with `cmd+shift+p` on Mac / `ctrl+shift+p` on Windows and then selecting `Continue: Open Debug Panel`
To test a few common recipes, open a blank python file and try the following:
@ -15,9 +15,9 @@ To test a few common recipes, open a blank python file and try the following:
- /pytest to write Pytest unit tests in a separate file
- Ask in natural language for a new method
See [here](https://continue.dev/docs/docs/concepts/recipe) for the full list of recipes currently available to use.
Check out the [Catalog](https://continue.dev/docs/catalog) to see the full list of recipes
You can find the Continue GitHub repo [here](https://github.com/continuedev/continue)
Give Continue a start on GitHub [here](https://github.com/continuedev/continue)
## Feedback

File diff suppressed because it is too large Load diff

View file

@ -192,6 +192,8 @@
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/node-fetch": "^2.6.2",
"@types/react-dom": "^18.2.4",
"@types/styled-components": "^5.1.26",
"@types/vscode": "^1.74.0",
"@types/ws": "^8.5.4",
"@typescript-eslint/eslint-plugin": "^5.45.0",
@ -210,11 +212,16 @@
"@reduxjs/toolkit": "^1.9.3",
"@segment/analytics-node": "^0.0.1-beta.16",
"@styled-icons/heroicons-outline": "^10.47.0",
"@vitejs/plugin-react-swc": "^3.3.2",
"axios": "^1.2.5",
"highlight.js": "^11.7.0",
"octokit": "^2.0.11",
"posthog-js": "^1.63.3",
"react-markdown": "^8.0.7",
"react-redux": "^8.0.5",
"strip-ansi": "^7.0.1",
"tailwindcss": "^3.3.2",
"vite": "^4.3.9",
"vscode-languageclient": "^8.0.2",
"ws": "^8.13.0"
}

View file

@ -1,48 +1,32 @@
# Continue VS Code Extension README
## How to get started with development
## How to debug the VS Code Extension
1. Clone the `continue` repo
1. Clone the Continue repo
2. Open a VS Code window with the `continue` repo
2. Open a VS Code window with the `continue` directory as your workspace
3. Package and then start the FastAPI server by following instructions outlined in `package/server/README.md`
3. Package and then start the FastAPI server by following instructions outlined in the `Continue Server` section of the `continuedev/README.md`
4. Open the `extension` sub-directory of the repo in a second VS Code window
4. Open a VS Code window with the `extension` directory as your workspace
5. Run `npm install`
5. From `continue/extension`, run `npm install`
6. Run `npm run clientgen`
6. Run `npm run full-package`
7. Run `cd react-app`
7. Open `src/activation/activate.ts` file (or any TypeScript file)
8. Run `npm run build`
8. Press `F5` on your keyboard to start `Run and Debug` mode
9. Run `cd ..` to return to `extension` directory
9. `cmd+shift+p` to look at developer console and select Continue commands
10. Then run `npm run compile`
10. Every time you make changes to the code, you need to run `npm run compile`
11. Open `src/activate.ts` file (or any TypeScript file)
11. If you run into a "command not found" error, try running `npm run rebuild` and then `npm run compile`
12. Press `F5` on your keyboard to start `Run and Debug` mode
## Alternative: Install from source
13. `cmd+shift+p` to look at developer console and select Continue commands
14. Every time you make changes to the code, you need to run `npm run compile`
15. If you run into a "command not found" error, try running `npm run rebuild` and then `npm run compile`
## Alternative: Install a packaged version
You should always have a packaged version installed in VS Code, because when Continue is broken you'll want a stable version to help you debug. There are four key commands in the `package.json`:
1. `npm run package` will create a .vsix file in the `build/` folder that can then be installed. It is this same file that you can share with others who want to try the extension.
2. `npm run install-extension` will install the extension to VS Code. You should then see it in your installed extensions in the VS Code sidebar.
3. `npm run uninstall` will uninstall the extension. You don't always have to do this thanks to the reinstall command, but can be useful when you want to do so manually.
4. `npm run reinstall` will go through the entire process of uninstalling the existing installed extension, rebuilding, and then installing the new version. You shouldn't be doing this every time you make a change to the extension, but rather when there is some significant update that you would like to make available to yourself (or if you happen to be debugging something which is specific to the packaged extension).
Update: directions to root README
## Background

View file

@ -88,7 +88,7 @@ async function setupPythonEnv() {
const createEnvCommand = [
`cd ${path.join(getExtensionUri().fsPath, "scripts")}`,
`${pythonCmd} -m venv env`,
].join(" && ");
].join(" ; ");
// Repeat until it is successfully created (sometimes it fails to generate the bin, need to try again)
while (true) {