FindFilesInWorkSpace

Function FindFilesInWorkSpace 

Source
pub fn FindFilesInWorkSpace(
    IncludePatternDTO: Value,
    ExcludePatternDTO: Option<Value>,
    MaxResults: Option<usize>,
    UseIgnoreFiles: bool,
    FollowSymlinks: bool,
) -> ActionEffect<Arc<dyn WorkSpaceProvider>, CommonError, Vec<Url>>
Expand description

Creates an effect that, when executed, will find files within the workspace based on include and exclude glob patterns.

It uses the WorkSpaceProvider capability from the environment to perform the search.

§Parameters

  • IncludePatternDTO: A serde_json::Value representing the glob pattern to include.
  • ExcludePatternDTO: An optional serde_json::Value for files/folders to exclude.
  • MaxResults: An optional limit on the number of results to return.
  • UseIgnoreFiles: Whether to respect .gitignore-style ignore files.
  • FollowSymlinks: Whether to follow symbolic links during the search.

§Returns

An ActionEffect that resolves with a Vec<Url> of the matching file URIs.