Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions doc/lsp/running.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Manually Running the Server
Typically you should never need to run the Language Server yourself, the
following methods are useful for development.

.. _lsp_running_stdio:

STDIO
~~~~~

Expand Down
3 changes: 3 additions & 0 deletions doc/lsp/support.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ See the `Language Server Specification`_ for details.
+-------------------------+---+-------------------------------------+
| Folding/Selection Range | ✘ | |
+-------------------------+---+-------------------------------------+
| Diagnostics | ✘ | Planned [#static]_ |
+-------------------------+---+-------------------------------------+

.. _Language Server Specification: https://microsoft.github.io/language-server-protocol/specification

Expand All @@ -52,3 +54,4 @@ See the `Language Server Specification`_ for details.
added soon.
.. [#nav] RPC supports :ref:`navigation_class_references` and :ref:`navigation_class_member_references`
.. [#rename] RPC supports :ref:`refactoring_rename_variable`, :ref:`refactoring_rename_class`, :ref:`refactoring_rename_member`,
.. [#static] Extension(s) will be provided to integrate static analynsis tools such as PHPStan https://github.com/phpactor/phpactor/issues/980
20 changes: 12 additions & 8 deletions doc/usage/language-server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,23 @@
Language Server
===============

Phpactor implements the `Language Server Protocol`_ which is supported by many
text editors and IDEs.
Phpactor implements the `Language Server Protocol`_
which is supported by many text editors and IDEs.

Client Integration
------------------

In general it should be possible to enable it on any LSP compatible client,
the following is a list of integration guides for *some* clients:
See :doc:`/lsp/support` for the list of supported features.

.. toctree::
:maxdepth: 1
:maxdepth: 2
:glob:

../lsp/clients

Other Clients
-------------

In general it should be possible to enable it on any LSP compatible client.
First perform a :ref:`installation_global` and then configure a generic
language server in your client, typically using :ref:`lsp_running_stdio`. See
:ref:`lsp_client_sublime` for an example.

.. _Language Server Protocol: https://microsoft.github.io/language-server-protocol/specification