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

feat: add ability to browse and search through VS Code #207

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

olafurpg
Copy link

@olafurpg olafurpg commented Sep 17, 2021

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 FileSystemProvider to display contents of text files and list directories from Sourcegraph
  • New "Files" TreeDataProvider to browse file system contents in a tree view
  • New "Diffs" TreeDataProvider to compare git revisions using VS Code's built in diff support
  • New NotebookSerializer to interactively edit and run search queries in a notebook-like environment

Demo: https://www.loom.com/share/71dab72106ea45f8a5881e2e2382cebe

@olafurpg olafurpg marked this pull request as draft September 17, 2021 16:20
@olafurpg
Copy link
Author

This is still a draft since I have a few more items that I want to clean up before getting a review. I decided to open the PR just to give a heads up that this is a large PR 😅

@olafurpg olafurpg force-pushed the stay-in-vscode branch 4 times, most recently from e56a994 to 273f80c Compare September 18, 2021 19:49
@olafurpg olafurpg marked this pull request as ready for review September 24, 2021 14:42
@olafurpg
Copy link
Author

This is finally ready for review! I apologize for the mostly meaningless git commit log. I can try to clean it up a bit but I'm not sure how much easier that will be to review because most of the changes are new files.

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
@emidoots
Copy link
Member

emidoots commented Oct 6, 2021

This looks really slick! I'm super happy you did this!

@olafurpg
Copy link
Author

olafurpg commented Oct 7, 2021

I pushed a new commit adding testing infrastructure that I'm hoping will make it much more manageable to maintain and evolve the new code. The tests are written directly against the GraphQL API on sourcegraph.com but the responses are recorded by Polly so that subsequent test runs can work offline (and they're super fast since no RPCs take place).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants