openExternal method

Future openExternal(
  1. Uri target
)

Opens a link externally using the default application. Depending on the used scheme this can be:

  • a browser (http:, https:)
  • a mail client (mailto:)
  • VSCode itself (vscode: from vscode.env.uriScheme)

Note that {@linkcode window.showTextDocumentshowTextDocument} is the right way to open a text document inside the editor, not this function.

Implementation

_i2.Future<_i2.dynamic> openExternal(_i4.Uri target) =>
    _i3.promiseToFuture(_i3.callMethod(
      this,
      'openExternal',
      [target],
    ));