Skip to content
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

diagnostics work only for files inside rootPath #19

Open
veksha opened this issue Jun 16, 2022 · 2 comments
Open

diagnostics work only for files inside rootPath #19

veksha opened this issue Jun 16, 2022 · 2 comments

Comments

@veksha
Copy link

veksha commented Jun 16, 2022

How well files outside of workspace are supported in php-ls?
Is this a server problem or the client should append to workspaceFolders for every file opened outside of rootPath?

Please help. Thanks.

@zobo
Copy link
Owner

zobo commented Jun 16, 2022

If I understand correctly, you are asking if the language server processes files that are open from outside of work folder? Or are you asking about files outside of work folder, but referenced from composer.json ?

@veksha
Copy link
Author

veksha commented Jun 16, 2022

Not referenced anywhere. random .php file that is not located in the current work folder (not indexed) but opened in the editor tab. Diagnostics are not working for such files. Language server can show some mistake in this file only on start. but if I will fix the mistake diagnosics will not come again, and old diagnostic messages will stay forever.
it works correctly for files inside work dir.

for example pylsp for python can work with such files, and even jump to definition between files not only inside current directory, but even on level above. and autocompletions work from all nearby directories. I dont have to set up correct workspace directory. it just picks up all stuff correctly. don't know if it is easy for php as for python to do that.

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

No branches or pull requests

2 participants