pucelle / vscode-run-on-save

Run configured shell commands when a file is saved in vscode, and output configured messages on status bar.
https://marketplace.visualstudio.com/items?itemName=pucelle.run-on-save
MIT License
50 stars 11 forks source link

[Feature Request] Add option to set the base for matching to workspace #38

Closed aroemen closed 6 months ago

aroemen commented 7 months ago

Since everyone stores code in different ways, it would be nice to have the match and globMatch have an option to match based on the workspace folder to allow consistency for shared commands in a project's setting.json file.

For instance, a globMatch of "src/**/*.ts would make only .ts files in the root src directory of the workspace. Today, you could do `/src//.ts, but that would technically match on anything underneath anysrcdirectory including items innode_modules`.

pucelle commented 6 months ago

Sounds reasonable, I have the similar idea sometimes but I'm a little lazy.

pucelle commented 6 months ago

Will be released in coming version v1.7.1.