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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ Changelog
Features:

- [language-server] Import class/function code action and diagnostics
- [language-server] Transform code actions and diagnostics (complete
constructor, implement contracts, fix class name and add missing
properties)

Improvements:

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"phpactor/class-mover": "^0.1.2",
"phpactor/class-to-file": "^0.3.3",
"phpactor/class-to-file-extension": "^0.2.1",
"phpactor/code-transform": "^0.3.2",
"phpactor/code-transform-extension": "^0.2",
"phpactor/code-transform": "^0.4",
"phpactor/code-transform-extension": "^0.2.1",
"phpactor/php-extension": "^0.1",
"phpactor/completion": "^0.4.1",
"phpactor/completion-extension": "~0.2.3",
Expand Down
95 changes: 48 additions & 47 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions doc/lsp/support.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ See the `Language Server Specification`_ for details.
+-------------------------+---+-------------------------------------+
| Selection Range | ✔ | |
+-------------------------+---+-------------------------------------+
| Code Action | ✘ | Supported by RPC [#rpc]_ [#code]_ |
| Code Action | ✔ | [#code]_ |
+-------------------------+---+-------------------------------------+
| Code Lens | ✘ | |
+-------------------------+---+-------------------------------------+
Expand All @@ -46,7 +46,7 @@ See the `Language Server Specification`_ for details.
+-------------------------+---+-------------------------------------+
| Folding/Selection Range | ✘ | |
+-------------------------+---+-------------------------------------+
| Diagnostics | - | Provided by extensions [#static]_ |
| Diagnostics | ✔ | [#diagnostics]_ |
+-------------------------+---+-------------------------------------+

.. _Language Server Specification: https://microsoft.github.io/language-server-protocol/specification
Expand All @@ -56,4 +56,4 @@ See the `Language Server Specification`_ for details.
added soon.
.. [#references] For class like references, functions and member accesses (static and object instances)
.. [#rename] RPC supports :ref:`refactoring_rename_variable`, :ref:`refactoring_rename_class`, :ref:`refactoring_rename_member`,
.. [#static] For example PHPStan https://github.com/phpactor/language-server-phpstan-extension
.. [#diagnostics] For code actions and also via. plugins, for example PHPStan https://github.com/phpactor/language-server-phpstan-extension