Theia API Documentation v1.74.0
    Preparing search index...

    Linkifies file:// URLs printed in the terminal and opens the referenced local file in the editor.

    A dedicated provider is needed because UrlLinkProvider only matches http(s) and FileLinkProvider's path regex excludes :, so neither recognizes the file: scheme.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    fileService: FileService
    fileUriRegExp: RegExp = ...

    The optional third slash denotes an empty authority (file:///path); the match runs to the first whitespace or character that commonly delimits a URL in prose.

    logger: ILogger
    openerService: OpenerService

    Methods

    • Splits a trailing :line or :line:column suffix (as in file:///x.ts:10:5) off the matched URL into a one-based editor position. The drive colon of file:///C:/x.ts is not affected, as it is not followed by digits at the end of the string.

      Parameters

      • match: string

      Returns { fileUri: string; position?: Position }