kokororin / vscode-phpfmt

Integrates phpfmt into VS Code
https://marketplace.visualstudio.com/items?itemName=kokororin.vscode-phpfmt
BSD 3-Clause "New" or "Revised" License
130 stars 30 forks source link

can option "ignore" be added? #97

Closed nmfmcosta closed 1 year ago

nmfmcosta commented 1 year ago

Hello,

How can I exclude files / folders with patterns from being parsed?

phpfmt allows the following option:

--ignore=PATTERN-1,PATTERN-N,... ignore file names whose names contain any PATTERN-N

I tried using custom_arguments:

"phpfmt.custom_arguments":" --ignore=",

But the output is:

.vscode\extensions\kokororin.vscode-phpfmt-1.0.31\node_modules\phpfmt\fmt.phar" --ignore=

Can "ignore" be a new setting on the plugin?

Thanks in advance

vandijkstef commented 1 year ago

+1. Wouldn't mind having a comment in the file either // @phpfmt-ignore

lucasferreira commented 1 year ago

Hi @nmfmcosta

I've made some PR to work on this https://github.com/kokororin/vscode-phpfmt/pull/101