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:

Parameter Type Description
extension string File extension.

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