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:

ParameterTypeDescription
extensionsstring[]The file extensions to register.
typestringThe view type identifier.
viewCreatorViewCreatorThe view creator function.

Returns: void