Skip to content
This repository was archived by the owner on Mar 10, 2022. It is now read-only.

Commit e56a994

Browse files
committed
feat: add ability to browse and search through VS Code
Previously, this extension only supported features that allowed the user to open Sourcegraph in the browser for further exploration. This commits adds several new features that allows the user to browse Sourcegraph while staying in the editor: - New Sourcegraph file system with tree view - New Sourcegraph notebooks to run search queries
1 parent 0455fe8 commit e56a994

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+19844
-12528
lines changed

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
yarn 1.22.4

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
"out": true, // set this to false to include "out" folder in search results
88
},
99
"eslint.validate": ["typescript"],
10+
"editor.formatOnSave": true,
1011
}

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ In the command palette (<kbd>Cmd</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> or <kbd>Ctr
1616

1717
Keyboard Shortcuts:
1818

19-
| Description | Mac | Linux / Windows |
20-
| ------------------------------- | ------------------------------ | --------------------------- |
21-
| Open file in Sourcegraph | <kbd>Option</kbd>+<kbd>A</kbd> | <kbd>Alt</kbd>+<kbd>A</kbd> |
22-
| Search selection in Sourcegraph | <kbd>Option</kbd>+<kbd>S</kbd> | <kbd>Alt</kbd>+<kbd>S</kbd> |
23-
| Search on Sourcegraph | <kbd>Option</kbd>+<kbd>Q</kbd> | <kbd>Alt</kbd>+<kbd>Q</kbd> |
19+
| Description | Mac | Linux / Windows |
20+
| ---------------------------------------- | ------------------------------ | --------------------------- |
21+
| Sourcegraph: Open file in browser | <kbd>Option</kbd>+<kbd>A</kbd> | <kbd>Alt</kbd>+<kbd>A</kbd> |
22+
| Sourcegraph: Go to file in editor | <kbd>Option</kbd>+<kbd>F</kbd> | <kbd>Alt</kbd>+<kbd>F</kbd> |
23+
| Sourcegraph: Go to repository in editor | <kbd>Option</kbd>+<kbd>R</kbd> | <kbd>Alt</kbd>+<kbd>R</kbd> |
24+
| Sourcegraph: Search selection in browser | <kbd>Option</kbd>+<kbd>S</kbd> | <kbd>Alt</kbd>+<kbd>S</kbd> |
2425

2526
## Extension Settings
2627

@@ -29,6 +30,8 @@ This extension contributes the following settings:
2930
- `sourcegraph.url`: Specify your on-premises Sourcegraph instance here, if applicable. For example: `"sourcegraph.url": "https://sourcegraph.com"`
3031
- `sourcegraph.remoteUrlReplacements`: Object, where each `key` is replaced by `value` in the remote url.
3132
- `sourcegraph.defaultBranch`: String to set the name of the default branch. Always open files in the default branch.
33+
- `sourcegraph.recentlyOpenFiles`: List of strings for recently visited files. This setting is automatically managed by the extension.
34+
- `sourcegraph.recentlyOpenRepositories`: List of strings for recently visited repositories. This setting is automatically managed by the extension.
3235

3336
## Questions & Feedback
3437

images/logo.svg

Lines changed: 8 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)