asDebugSourceUri method

Uri asDebugSourceUri(
  1. DebugProtocolSource source, [
  2. DebugSession? session
])

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.

Implementation

_i3.Uri asDebugSourceUri(
  _i3.DebugProtocolSource source, [
  _i3.DebugSession? session,
]) =>
    _i4.callMethod(
      this,
      'asDebugSourceUri',
      [
        source,
        session ?? _i5.undefined,
      ],
    );