-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Looks like this extension is potentially going through some rewrite based on recent commits :)
In addition, I think it would be a useful feature to include ability to set automatic folding of all block comments as well.
(in my opinion, this is particularly useful where my .js files have lots of JSDoc block comments)
For just my personal usage, I was messing around with this very briefly, the following modification/command seems to work fine in practice:
if (Level === 999) { // TODO: replace with better Config value check
vscode.commands.executeCommand('editor.foldAllBlockComments');
}
else {
vscode.commands.executeCommand('editor.foldLevel' + Level);
}I just removed the 0-9 level validation to get something quick and dirty working, I think ideally the final implementation could allow to specify Level config as maybe 'foldAllBlockComments' or 'comments' or '/' - something like that would be preferred for clarity and non "magic number"
Thanks!