You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@synopsis{Definition of a language server by its meta-data.}
49
50
@description{
@@ -207,6 +208,9 @@ hover documentation, definition with uses, references to declarations, implement
207
208
* The ((inlayHint)) service discovers plances to add "inlays" (little views embedded in the editor on the same line). Unlike ((lenses)) inlays do not offer command execution.
208
209
* The ((execution)) service executes the commands registered by ((lenses)) and ((inlayHinter))s.
209
210
* The ((actions)) service discovers places in the editor to add "code actions" (little hints in the margin next to where the action is relevant) and connects ((CodeAction))s to execute when the users selects the action from a menu.
211
+
* The ((util::LanguageServer::rename)) service renames an identifier by collecting the edits required to rename all occurrences of that identifier. It might fail and report why in diagnostics.
212
+
* The optional `prepareRename` service argument discovers places in the editor where a ((util::LanguageServer::rename)) is possible. If renameing the location is not supported, it should throw an exception.
213
+
* The ((didRenameFiles)) service collects ((DocumentEdit))s corresponding to renamed files (e.g. to rename a class when the class file was renamed). The IDE applies the edits after moving the files. It might fail and report why in diagnostics.
210
214
211
215
Many services receive a ((Focus)) parameter. The focus lists the syntactical constructs under the current cursor, from the current
212
216
leaf all the way up to the root of the tree. This list helps to create functionality that is syntax-directed, and always relevant to the
0 commit comments