Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow extensions to contribute a view to the navigation pane. #9717

Closed
indiejames opened this issue Jul 25, 2016 · 9 comments
Closed

Allow extensions to contribute a view to the navigation pane. #9717

indiejames opened this issue Jul 25, 2016 · 9 comments
Labels
feature-request Request for new features or functionality
Milestone

Comments

@indiejames
Copy link

It would be very useful for extensions to be able to contribute views to the navigation pane / leftmost pane. For instance, a Clojure extension might contribute a tree view of namespaces with symbols as the leaves for project navigation. This would allow a user to jump to a position in a file were a symbol within a namespace was defined.

@kieferrm kieferrm added the info-needed Issue requires more information from poster label Jul 26, 2016
@kieferrm
Copy link
Member

kieferrm commented Aug 2, 2016

@indiejames seems my original comment didn't make it through. Just pushing back on your use case a bit, why is what we have in the command palette not enough?

screen shot 2016-08-02 at 1 49 21 pm

(I can see other good use case for a custom navigation pane, but I wonder about your concrete example.)

@indiejames
Copy link
Author

indiejames commented Aug 2, 2016

I think the command palette symbol navigation is great once you are familiar with the symbols in a project and you know which one you want, but a browsable tree structure is very helpful when you are exploring a new codebase. Instead of browsing files you browse namespaces and symbols.

I'll try to put an example image together later tonight when I have more time. For now it might be helpful to think of something like the navigation pane in Javadocs, where you can navigate packages to view the classes and methods on classes.

@indiejames
Copy link
Author

indiejames commented Aug 3, 2016

This is sort of what I'm thinking for Clojure namespaces:

vscode-nav

In this case the user has set a filter to narrow the scope of the displayed namespaces to anything starting with 'repl-test', expanded the 'repl-test.util' namespace, and selected the 'bar' symbol (which would open the file for that namespace in an editor pane and move the cursor to the start of the function definition). The icons of the left of the symbol names indicate type; in this case function or macro.

@aeschli aeschli added feature-request Request for new features or functionality and removed info-needed Issue requires more information from poster labels Aug 3, 2016
@aeschli aeschli added this to the Backlog milestone Aug 3, 2016
@ivanz
Copy link
Contributor

ivanz commented Aug 5, 2016

Was just about to open an issue for the same thing, when I found this one! Similar situation here: the "command palette" is good for when know in advance what you are looking for , but not particularly amazing for code exploration. I have been using VSCode over the last 2 weeks on a couple of C# projects and would have been great to have some sort of a symbol browser on the side.

@patrickjuchli
Copy link

This would be a great feature for extensions. I'm working on a JS code exploration tool that would fit perfectly into this side bar. I could also imagine to use the VSCode UI Elements for that. Maybe the side bar could be a good test bed for custom UI extension features in the future?

@FabianLauer
Copy link

@aeschli j4i, looks like this is being tracked here: #15262
Also: #15217 (comment)

@pavolmarko
Copy link

I would also be interested in this - my usecase is writing an extension which displays a view very similar to the Git view, but instead of displaying unstaged/staged changes, would display changes done since the current branch has branched off the master branch, as this would help me in my workflow.

@bpasero
Copy link
Member

bpasero commented May 25, 2017

/cc @sandy081

@sandy081
Copy link
Member

This is implemented by #26948. Please use this feature and open new issues for new requests. Closing this.

@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

9 participants