This adds support to allow enabling statusbar items only when specific types of files are active in the editor. Not providing the filePattern attribute simply retains the previous behavior where the statusbar item is always displayed if not configured as hidden. (The new attribute only acts on statusbar items that are not effectively set as hidden through the combination of tasks.json or the settings.json global setting).
For example, the following would only display the "Test" button when the active editor is for a filename that begins with _test:
This adds support to allow enabling statusbar items only when specific types of files are active in the editor. Not providing the
filePattern
attribute simply retains the previous behavior where the statusbar item is always displayed if not configured as hidden. (The new attribute only acts on statusbar items that are not effectively set as hidden through the combination oftasks.json
or thesettings.json
global setting).For example, the following would only display the "Test" button when the active editor is for a filename that begins with
_test
: