If the application doesn't provide any IEditorProvider exports, then editorProviders will be an empty array. This leads to the Run() code trying to populate dialog.Filter with "All Supported Files||", which is not a valid Filter value and causes an argument exception to be thrown.
If the application doesn't provide any
IEditorProvider
exports, theneditorProviders
will be an empty array. This leads to theRun()
code trying to populatedialog.Filter
with"All Supported Files||"
, which is not a valid Filter value and causes an argument exception to be thrown.