1.8 KiB
1.8 KiB
Continue VS Code Extension
This is the Continue VS Code Extension. Its primary jobs are
- 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. - Open the Continue React app in a side panel. The React app's source code lives in the
react-appdirectory. The panel is opened by thecontinue.openContinueGUIcommand, as defined insrc/commands.ts. - 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.tsby calling Python code that lives inserver/(unless extension settings define a server URL other than localhost:65432, in which case the extension will just connect to that).
How to debug the VS Code Extension
-
Clone the Continue repo
-
Open a VS Code window with the
continuedirectory as your workspace -
Package and then start the FastAPI server by following instructions outlined in the
Continue Serversection of thecontinuedev/README.md -
Open a VS Code window with the
extensiondirectory as your workspace -
Run
npm run package -
Open
src/activation/activate.tsfile (or any TypeScript file) -
Press
F5on your keyboard to startRun and Debugmode -
cmd+shift+pto look at developer console and select Continue commands -
Every time you make changes to the code, you need to run
npm run esbuildunless you make changes inside ofreact-appand then you need to runnpm run buildfrom there
Notes
- We require vscode engine
^1.67.0and use@types/vscodeversion1.67.0because this is the earliest version that doesn't break any of the APIs we are using. If you go back to1.66.0, then it will breakvscode.window.tabGroups.