Fix lint errors
parent
d833196757
commit
4df4195618
|
@ -220,11 +220,11 @@ class LanguageServer extends AdvancedJsonRpc\Dispatcher
|
||||||
$textDocuments = [];
|
$textDocuments = [];
|
||||||
return Promise\all(array_map(function ($pattern) use (&$textDocuments) {
|
return Promise\all(array_map(function ($pattern) use (&$textDocuments) {
|
||||||
return coroutine(function () use ($pattern, &$textDocuments) {
|
return coroutine(function () use ($pattern, &$textDocuments) {
|
||||||
$pattern = Path::makeAbsolute($pattern, $this->rootPath);
|
$pattern = Path::makeAbsolute($pattern, $this->rootPath);
|
||||||
foreach (new GlobIterator($pattern) as $path) {
|
foreach (new GlobIterator($pattern) as $path) {
|
||||||
$textDocuments[] = new TextDocumentIdentifier(pathToUri($path));
|
$textDocuments[] = new TextDocumentIdentifier(pathToUri($path));
|
||||||
yield timeout();
|
yield timeout();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}, $patterns))->then(function () use ($textDocuments) {
|
}, $patterns))->then(function () use ($textDocuments) {
|
||||||
return $textDocuments;
|
return $textDocuments;
|
||||||
|
|
Loading…
Reference in New Issue