Closed julian-poidevin closed 3 years ago
I need to add some better docs there. Its just appending to a glob so you should be able to use {.c,.h}
I'm sorry I dont get your answer, why does my "formatFiles.extensionsToInclude": "c,h",
setting does not find any files ? See below :
[14:52:51 info.] (get-files) Discovered 0 files to format
I think the following code is not working as intended : https://github.com/jbockle/format-files/blob/31b375a6bbc2d51f952447b7a66d914a26fd21e8/src/ext/queries/get-files.ts#L28-L32
When providing the following setting : formatFiles.extensionsToInclude": "c,h"
, the global pattern generated is **/*.{.c,.h}
whereas it should be **/*.{c,h}
(without the dots before each extension).
you are on the right track, instead of "c,h"
do "{c,h}"
That worked ! Thanks !
Using the following settings :
And launching the
formatFiles.start.workspace
command, the extnesion does not find any files to format :Whereas launching from
formatFiles.start.fromGlob
command, using respevely**/*.c
and**/*.h
pattern, the extension finds the files :