Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 1.09 KB

index.md

File metadata and controls

34 lines (19 loc) · 1.09 KB

Development

Setup

  1. Install asdf
  2. Run asdf install (if needed, run asdf plugin add NAME for any missing plugins)
  3. Run pnpm install && pnpm build

Build and run the VS Code extension

Open this repository in VS Code and run the Launch VS Code Extension (Desktop, recommended) build/debug task (or run pnpm -C vscode run dev).

See vscode/CONTRIBUTING.md for more information.

Other topics

Tips

Use web build for quick UI iteration

As of Sept 2024, the quickest way to iterate on the chat UI is to run the web build:

pnpm -C web dev

By default, this will connect to sourcegraph.com, but you can also run it against a local instance by modifying serverEndpoint in App.tsx

Source maps

You can emit source maps by setting sourcemap: true in vscode/webviews/vite.config.mts. This helps with setting breakpoints in the webview.