Theia API Documentation v1.65.0
    Preparing search index...
    • Converts a "Source" descriptor object received via the Debug Adapter Protocol into a Uri that can be used to load its contents. If the source descriptor is based on a path, a file Uri is returned. If the source descriptor uses a reference number, a specific debug Uri (scheme 'debug') is constructed that requires a corresponding ContentProvider and a running debug session If the "Source" descriptor has insufficient information for creating the Uri, an error is thrown.

      Parameters

      • source: DebugProtocolSource

        An object conforming to the Source type defined in the Debug Adapter Protocol.

      • Optionalsession: DebugSession

        An optional debug session that will be used when the source descriptor uses a reference number to load the contents from an active debug session.

      Returns Uri