Jump to Sourcegraph directly from VS Code!
Command
In the command pallet, type Open in Sourcegraph.
In the command pallet, type Copy Sourcegraph link to clipboard.
Keybord shortcut
Press Ctrl+S to open in browser. Press Ctrl+Shift+S to copy to clipboard.
Context menu
Right click on an explorer item and choose Open in Sourcegraph or Copy Sourcegraph link to clipboard.
Your code must be hosted on GitHub.com. If your repository is private, create an account on Sourcegraph.com and provide Sourcegraph OAuth scope to view your private repositories.
Linking to a line on Sourcegraph.com requires a non-dirty buffer and the HEAD revision must be
pushed upstream.
Linking will not work properly if your working directory is in a deatched HEAD state.
Initial release
- press
F5to open a new window with your extension loaded - relaunch the extension from the debug toolbar after changing code in
src/extension.ts, or usingF5 - reload (
Ctrl+RorCmd+Ron Mac) the VS Code window with your extension to load your changes
- open the debug viewlet (
Ctrl+Shift+DorCmd+Shift+Don Mac) and from the launch configuration dropdown pickLaunch Tests - press
F5to run the tests in a new window with your extension loaded - see the output of the test result in the debug console
- make changes to
test/extension.test.tsor create new test files inside thetestfolder- by convention, the test runner will only consider files matching the name pattern
**.test.ts
- by convention, the test runner will only consider files matching the name pattern


