1
0
Fork 0

Fix lint errors

pull/136/head
Felix Becker 2016-11-07 01:23:38 +01:00
parent d833196757
commit 4df4195618
1 changed files with 5 additions and 5 deletions

View File

@ -220,11 +220,11 @@ class LanguageServer extends AdvancedJsonRpc\Dispatcher
$textDocuments = [];
return Promise\all(array_map(function ($pattern) use (&$textDocuments) {
return coroutine(function () use ($pattern, &$textDocuments) {
$pattern = Path::makeAbsolute($pattern, $this->rootPath);
foreach (new GlobIterator($pattern) as $path) {
$textDocuments[] = new TextDocumentIdentifier(pathToUri($path));
yield timeout();
}
$pattern = Path::makeAbsolute($pattern, $this->rootPath);
foreach (new GlobIterator($pattern) as $path) {
$textDocuments[] = new TextDocumentIdentifier(pathToUri($path));
yield timeout();
}
});
}, $patterns))->then(function () use ($textDocuments) {
return $textDocuments;