Function getWorkspaceForDocument

  • Return workspace folder {URI} (if found) matching the document URI.

    Parameters

    • OptionaldocumentURI: URI

      document URI

    • OptionalworkspaceURIs: URI[]

      a list of workspace URIs to consider. Optional

    Returns undefined | URI

    one of the URIs from workspaceURIs or undefined, if the document couldn't be matched to any workspaces.