kdcro101 / vscode-favorites

Add files and directories to workspace favorites. You can create groups (and subgroups) of favorite items with files and folders. Time saver for complex projects.
MIT License
49 stars 13 forks source link

Possibility to add files that do not belong to project #8

Closed kAlvaro closed 6 years ago

kAlvaro commented 6 years ago

I sometimes need to have at hand certain files that do not belong to the project sources (Apache configuration, notes and specs, customer contact data...). Apparently it's currently not possible:

It'd be a nice addition.

kdcro101 commented 6 years ago

@kAlvaro ,

Sorry for late reply.

Please update to version 1.7.0. You can add external files/directories to favorites. Check README.md for instructions

As for other things you mentioned:

Some time in (near) future i will publish more thorough instructions and explanations in README.md.

If you have any problems or questions, open issue.

Thank you for your feedback!

kAlvaro commented 6 years ago

@kdcro101 Thank you very much for the feature. But I'm not sure if I'm missing something. I've created a group from the Favorites pane and added a file with Add external resource context menu. Now the file shows up in the favourites tree but it won't open. When I click on the file name a document tab flashes for an instant but that's all—the file will not open. I've checked the JavaScript console and it doesn't display anything.

Any idea of where to look for further details?

kAlvaro commented 6 years ago

I've tried running VSCode from console with verbose output enabled:

code --verbose --log trace .

When I click on an external file I get this:

[7304:0816/084833.396:INFO:CONSOLE(1397)] "%cTRACE", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (1397)
[7304:0816/084833.400:INFO:CONSOLE(1397)] "%cTRACE", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (1397)
[7304:0816/084833.401:INFO:CONSOLE(1397)] "%cTRACE", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (1397)
[7304:0816/084833.403:INFO:CONSOLE(1397)] "%cTRACE", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (1397)
[7304:0816/084833.417:INFO:CONSOLE(1398)] "%c  ERR", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (1398)
[7304:0816/084833.418:INFO:CONSOLE(1398)] "%c  ERR", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (1398)
[7304:0816/084833.418:INFO:CONSOLE(1398)] "%c  ERR", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (1398)
[7304:0816/084833.418:INFO:CONSOLE(1398)] "%c  ERR", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (1398)
[7304:0816/084833.419:INFO:CONSOLE(1398)] "%c  ERR", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (1398)
[7304:0816/084833.419:INFO:CONSOLE(1398)] "%c  ERR", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (1398)
[7304:0816/084833.419:INFO:CONSOLE(1398)] "%c  ERR", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (1398)
[7304:0816/084833.419:INFO:CONSOLE(1398)] "%c  ERR", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (1398)
[7304:0816/084833.419:INFO:CONSOLE(1398)] "%c  ERR", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (1398)
[7304:0816/084833.419:INFO:CONSOLE(1398)] "%c  ERR", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (1398)
[7304:0816/084833.420:INFO:CONSOLE(1398)] "%c  ERR", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (1398)
[7304:0816/084833.420:INFO:CONSOLE(1398)] "%c  ERR", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (1398)
[7304:0816/084833.433:INFO:CONSOLE(1397)] "%cTRACE", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (1397)

I guess it isn't very helpful since C:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\workbench.main.js contains minified JavaScript :-S

kdcro101 commented 6 years ago

@kAlvaro ,

Thank you for feedback!

I have made some changes. Please update to 1.7.1. If problem persists open issue!