natewallace / peep Goto Github PK
View Code? Open in Web Editor NEWQuickly toggle between hiding and showing files defined in your projects files.exclude setting.
Quickly toggle between hiding and showing files defined in your projects files.exclude setting.
Hide the .js sibling files of typescript .ts with:
"**/*.js": {
"when": "$(basename).ts"
}
Visibility of .js file did not change with Peep command. Peep only toggle the boolean value.
I suggest that the Peep should just comment/uncomment the whole "files.exclude" section.
The code currently uses JSON.parse()
to read the settings file, so it throws an error if the file contains comments. The default settings.json
file that is generated by VSCode has comments in it, which crashes Peep.
I recommend using JSON5, which gives you a .parse()
function that supports comments, and other "technically invalid" JSON syntax, such as trailing commas and unquoted strings. Or you could use strip-json-comments, which simply removes comments from JSON, but doesn't handle the other things that JSON5 handles.
Of course, you'd still use JSON.stringify()
when saving the file, so the comments will still be lost. But at least the code will still work and won't throw an error.
The Extension does not work with multiroot workspaces.
You've defined two commands: extension.peepAll
and extension.peepNone
. It would be great if you could also define an extension.peepToggle
command, which would simply toggle the setting between true and false. This is especially handy because it can be bound to a keyboard shortcut to easily show/hide excluded files.
VS Code has added the setting explorer.excludeGitIgnore
to also exclude files which are included in git ignore. It would be great if peep could also quickly toggle this setting.
It'd be cool if peep'd files were semi-transparent when toggled to differentiate them from files that are not hidden.
Now that there is an API for accessing the active configuration, without having to read and write files, this can make this extension much faster.
http://code.visualstudio.com/docs/extensionAPI/vscode-api - Search for getConfiguration
.
You can also see the API in the TS definition file: https://github.com/Microsoft/vscode/blob/master/src/vs/vscode.d.ts#L3866
Thanks for a great extension.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.