22 lines
484 B
PHP
22 lines
484 B
PHP
|
<?php
|
||
|
declare(strict_types = 1);
|
||
|
|
||
|
namespace LanguageServer\FilesFinder;
|
||
|
|
||
|
use Sabre\Event\Promise;
|
||
|
|
||
|
/**
|
||
|
* Interface for finding files in the workspace
|
||
|
*/
|
||
|
interface FilesFinder
|
||
|
{
|
||
|
/**
|
||
|
* Returns all files in the workspace that match a glob.
|
||
|
* If the client does not support workspace/xfiles, it falls back to searching the file system directly.
|
||
|
*
|
||
|
* @param string $glob
|
||
|
* @return Promise <string[]>
|
||
|
*/
|
||
|
public function find(string $glob): Promise;
|
||
|
}
|