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
F5
to 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+R
orCmd+R
on Mac) the VS Code window with your extension to load your changes
- open the debug viewlet (
Ctrl+Shift+D
orCmd+Shift+D
on Mac) and from the launch configuration dropdown pickLaunch Tests
- press
F5
to 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.ts
or create new test files inside thetest
folder- 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