Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IEditorMimeTypeService

The mime type service of a code editor.

Hierarchy

  • IEditorMimeTypeService

Implemented by

Index

Methods

getMimeTypeByFilePath

  • getMimeTypeByFilePath(filePath: string): string
  • Get a mime type for the given file path.

    Parameters

    • filePath: string

      The full path to the file.

    Returns string

    A valid mimetype.

    Notes

    If a mime type cannot be found returns the defaul mime type text/plain, never null.

getMimeTypeByLanguage

  • getMimeTypeByLanguage(info: nbformat.ILanguageInfoMetadata): string
  • Get a mime type for the given language info.

    Parameters

    • info: nbformat.ILanguageInfoMetadata

      The language information.

    Returns string

    A valid mimetype.

    Notes

    If a mime type cannot be found returns the defaul mime type text/plain, never null.

Generated using TypeDoc