asRelativePath method

String asRelativePath(
  1. Object pathOrUri, [
  2. bool? includeWorkspaceFolder
])

Returns a path that is relative to the workspace folder or folders.

When there are no {@link workspace.workspaceFoldersworkspace folders} or when the path is not contained in them, the input is returned.

Implementation

_i2.String asRelativePath(
  _i2.Object pathOrUri, [
  _i2.bool? includeWorkspaceFolder,
]) =>
    _i4.callMethod(
      this,
      'asRelativePath',
      [
        pathOrUri,
        includeWorkspaceFolder ?? _i5.undefined,
      ],
    );