Skip to content

Enable LS to operate without accessing the file system #136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Nov 14, 2016
Merged

Conversation

felixfbecker
Copy link
Owner

@felixfbecker felixfbecker commented Nov 6, 2016

This PR decouples the LS from direct file system access by implementing the proposals for workspace/globworkspace/files and textDocument/content under workspace/xglobworkspace/xfiles and textDocument/xcontent. The requests are only used when the client expressed support for them through ClientCapabilities, otherwise direct FS access is used.

This turns document content retrieval and recursive file search into async operations.
In turn, all server handlers can now operate async by returning a promise.

@codecov-io
Copy link

codecov-io commented Nov 6, 2016

Current coverage is 92.45% (diff: 95.02%)

Merging #136 into master will increase coverage by 1.03%

@@             master       #136   diff @@
==========================================
  Files            34         35     +1   
  Lines           770        809    +39   
  Methods         104        110     +6   
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits            704        748    +44   
+ Misses           66         61     -5   
  Partials          0          0          
Diff Coverage File Path
•••••••• 83% src/LanguageServer.php
••••••••• 95% src/Project.php
•••••••••• 100% src/Server/TextDocument.php
•••••••••• 100% new src/Client/Workspace.php
•••••••••• 100% src/utils.php
•••••••••• 100% src/LanguageClient.php
•••••••••• 100% src/Client/TextDocument.php
•••••••••• 100% src/PhpDocument.php

Powered by Codecov. Last update 25f300c...7efb2c9

@felixfbecker felixfbecker merged commit 03bbf5f into master Nov 14, 2016
@felixfbecker felixfbecker deleted the no-fs branch November 14, 2016 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants