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

[Feature-request] File Explorer extensions API #15565

Closed
Igmat opened this issue Nov 16, 2016 · 2 comments
Closed

[Feature-request] File Explorer extensions API #15565

Igmat opened this issue Nov 16, 2016 · 2 comments
Labels
api *question Issue represents a question, should be posted to StackOverflow (VS Code)

Comments

@Igmat
Copy link

Igmat commented Nov 16, 2016

Motivation

I was looking for extension that enables working with node_modules in way that looks like it done in Visual Studio:
solution explorer
And I haven't found any. Then I investigated vscode API and realized that there is no way provided for extending File Explorer, so I can't create such extension also.

What this feature offers?

This API could be useful for providing a way to restructure appearance of files and folders in File Explorer in order to organize it in more useful way depending on platform. It also could be used for extensions that change file appearance e.g. makes one folder-like group from file.ts, file.js, file.d.ts, file.js.map.

Implementation ideas

I'm not very familiar with vscode API for now, but it seems that it could be reached by adding API for registering function that looks like this:

TransformFolderStructure(structure: IFolderStructure): IFolderStructure

which would be called by vscode, when folder structure changed. And because of that this function has same return type as argument type, we are able to apply several transform functions, where each one uses result of previous. So in most cases different extensions that uses this API wouldn't conflict.

P.S.

If this idea doesn't conflict with plans of vscode team, I would love to participate in its implementation.

@ramya-rao-a
Copy link
Contributor

@Igmat What nice timing! You should read the work done by @octref recently at #15485 and the issues linked there.

@ramya-rao-a ramya-rao-a added *question Issue represents a question, should be posted to StackOverflow (VS Code) api labels Nov 16, 2016
@octref
Copy link
Contributor

octref commented Nov 16, 2016

@Igmat Take a look at: https://github.com/Microsoft/vscode-extension-samples/tree/master/tree-explorer-sample

Also here are some doc, although we haven't decided where to put it: https://github.com/Microsoft/vscode-docs/blob/0d5e75bf7fdea241e8b86da734bfda03d9d4c1de/docs/extensions/example-tree-explorer.md

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api *question Issue represents a question, should be posted to StackOverflow (VS Code)
Projects
None yet
Development

No branches or pull requests

3 participants