Skip to content

ViewRegistry.registerViewWithExtensions method

ViewRegistry › registerViewWithExtensions

Unofficial

Register a view and its associated file extensions.

Signature:

registerViewWithExtensions(extensions: string[], type: string, viewCreator: ViewCreator): void

Parameters:

Parameter Type Description
extensions string[] The file extensions to register.
type string The view type identifier.
viewCreator ViewCreator The view creator function.

Returns: void