continue-custom/extension/src
2023-07-27 09:58:56 -07:00
..
__mocks__ fix python version on windows, other bugs, jest 2023-07-03 19:34:33 -07:00
activation checkpoint. Somewhat working, just a bit slow, probably some blocking meilisearch calls still happening 2023-07-25 22:26:09 -07:00
lang-server remove quick fix, it's unreliable rn 2023-07-23 16:21:24 -07:00
terminal temporary fix for newline due to terminal size 2023-06-17 20:55:40 -07:00
test fix python version on windows, other bugs, jest 2023-07-03 19:34:33 -07:00
util Merge branch 'config-py' into merge-config-py-TO-main 2023-07-26 00:26:02 -07:00
bridge.ts Removing unnecessary config.jsons 2023-07-24 20:02:43 -07:00
commands.ts transparent bg fix 2023-07-19 18:45:46 -07:00
continueIdeClient.ts fix: 🐛 handle when vscode workspace not open 2023-07-27 09:58:56 -07:00
debugPanel.ts fix: 🐛 fix dialog links 2023-07-26 09:20:56 -07:00
decorations.ts purging old extension code 2023-06-21 08:47:06 -07:00
diffs.ts fix: 🐛 fix dialog links 2023-07-26 09:20:56 -07:00
extension.ts error handle on invalid config file, don't immediately show loading message 2023-07-18 14:02:03 -07:00
README.md adds /edit and /explain commands 2023-06-15 11:35:17 -07:00
suggestions.ts remove Segment telemetry from React 2023-07-21 19:55:08 -07:00

Continue VS Code Extension README

How to debug the VS Code Extension

  1. Clone 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 the Continue Server section of the continuedev/README.md

  4. Open a VS Code window with the extension directory as your workspace

  5. From continue/extension, run npm install

  6. Run npm run full-package

  7. Open src/activation/activate.ts file (or any TypeScript file)

  8. Press F5 on your keyboard to start Run and Debug mode

  9. cmd+shift+p to look at developer console and select Continue commands

  10. Every time you make changes to the code, you need to run npm run esbuild unless you make changes inside of react-app and then you need to run npm run build from there

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-3
  • src/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 panel
  • src/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 wrong button
  • Write a unit test to reproduce bug button
  • Highlight a code range + Find Suspicious Code button
  • Suggest Fix button
  • A fix suggestion shown to you + Make Edit button
  • 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)