Skip to content

ViewRegistry.getTypeByExtension method

ViewRegistry › getTypeByExtension

Unofficial

Get the view type associated with a file extension.

Signature:

getTypeByExtension(extension: string): string | undefined

Parameters:

ParameterTypeDescription
extensionstringFile extension.

Returns: string | undefinedThe view type string, or undefined if not registered.