| .. | ||
| activation | ||
| lang-server | ||
| languages | ||
| terminal | ||
| test | ||
| util | ||
| bridge.ts | ||
| commands.ts | ||
| continueIdeClient.ts | ||
| debugPanel.ts | ||
| decorations.ts | ||
| extension.ts | ||
| README.md | ||
| suggestions.ts | ||
| telemetry.ts | ||
Continue VS Code Extension README
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 -
From
continue/extension, runnpm install -
Run
npm run full-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 compile -
If you run into a "command not found" error, try running
npm run rebuildand thennpm run compile
Alternative: Install from source
Update: directions to root README
Background
src/bridge.ts: connects this VS Code Extension to our Python backend that interacts with GPT-3src/debugPanel.ts: contains the HTML for the full window on the right (used for investigation)src/DebugViewProvider.ts: contains the HTML for the bottom left panelsrc/extension.ts: entry point into the extension, where all of the commands / views are registered (activate function is what happens when you start extension)media/main.js: handles messages sent from the extension to the webview (bottom left)media/debugPanel.js: loaded by right window
Features
List 10 things that might be wrongbuttonWrite a unit test to reproduce bugbutton- Highlight a code range +
Find Suspicious Codebutton Suggest Fixbutton- A fix suggestion shown to you +
Make Editbutton - Write a docstring for the current function
- Ask a question about your codebase
- Move up / down to the closest suggestion
Commands
- "Write a docstring for the current function" command (windows:
ctrl+alt+l, mac:shift+cmd+l) - "Open Continue GUI" command
- "Ask a question from input box" command (windows:
ctrl+alt+j, mac:shift+cmd+j) - "Open Captured Terminal" command
- "Ask a question from webview" command (what context is it given?)
- "Create Terminal" command ???
- "Suggestion Down" command (windows:
shift+ctrl+down, mac:shift+ctrl+down) - "Suggestion Up" command (windows:
shift+ctrl+up, mac:shift+ctrl+up) - "Accept Suggestion" command (windows:
shift+ctrl+enter, mac:shift+ctrl+enter)