Provide context to format provider so it knows whether a format came from a save request/manual invocation #59953
Labels
config
VS Code configuration, set up issues
*duplicate
Issue identified as a duplicate of another issue(s)
feature-request
Request for new features or functionality
Milestone
I have users that need to disable format-on-save for some sub-tree within their project. Since they can't put settings in sub-folders (without making them workspace folders, which duplicates them at the top - see #45470) my plan is to implement a setting where they can configure a list of files (patterns, like
files.exclude
) to exclude from formatting.However, it'd be bette if we could exclude them from automatic formatting without making explicit format requests silently fail. Currently it doesn't seem like the format provider is given enough information for this.
The text was updated successfully, but these errors were encountered: