You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking for extension that enables working with node_modules in way that looks like it done in Visual Studio:
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:
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.
The text was updated successfully, but these errors were encountered:
Motivation
I was looking for extension that enables working with
node_modules
in way that looks like it done in Visual Studio: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: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.
The text was updated successfully, but these errors were encountered: