Protected
Readonly
loggerProtected
Readonly
rawProtected
Readonly
rgProtected
addripgrep set of arguments
patterns to include as globs
whether to negate the glob pattern or not
Cancel an ongoing search. Trying to cancel a search that doesn't exist isn't an error, otherwise we'd have to deal with race conditions, where a client cancels a search that finishes normally at the same time.
Dispose this object.
Protected
extractThe default search paths are set to be the root paths associated to a workspace however the search scope can be further refined with the include paths available in the search options. This method will replace the searching paths to the ones specified in the 'include' options but as long as the 'include' paths can be successfully validated as existing.
Therefore the returned array of paths can be either the workspace root paths or a set of validated paths derived from the include options which can be used to perform the search.
Any pattern that resulted in a valid search path will be removed from the 'include' list as it is provided as an equivalent search path instead.
Protected
getTransform include/exclude option patterns from relative patterns to absolute patterns. E.g. './abc/foo.' to '${root}/abc/foo.', the transformation does not validate the pattern against the file system as glob suffixes remain.
undefined if the pattern cannot be converted into an absolute path.
Protected
getOptional
options: SearchInWorkspaceOptionsProtected
isTests if the pattern is relative and should/can be made absolute.
Protected
replaceTransforms relative patterns to absolute paths, one for each given search path. The resulting paths are not validated in the file system as the pattern keeps glob information.
The resulting list may be larger than the received patterns as a relative pattern may resolve to multiple absolute patterns up to the number of search paths.
By default, sets the search directories for the string WHAT to the provided ROOTURIS directories and returns the assigned search id.
The include / exclude (options in SearchInWorkspaceOptions) are lists of patterns for files to include / exclude during search (glob characters are allowed).
include patterns successfully recognized as absolute paths will override the default search and set the search directories to the ones provided as includes. Relative paths are allowed, the application will attempt to translate them to valid absolute paths based on the applicable search directories.
If this server is a proxy to a remote server then a client is used as a local object to handle RPC messages from the remote server.
Add glob patterns to ripgrep's arguments