Path: blob/master/modules/gdscript/doc_classes/GDScriptLanguageProtocol.xml
46004 views
<?xml version="1.0" encoding="UTF-8" ?>1<class name="GDScriptLanguageProtocol" inherits="JSONRPC" api_type="editor" experimental="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">2<brief_description>3GDScript language server.4</brief_description>5<description>6Provides access to certain features that are implemented in the language server.7[b]Note:[/b] This class is not a language server client that can be used to access LSP functionality. It only provides access to a limited set of features that is implemented using the same technical foundation as the language server.8</description>9<tutorials>10</tutorials>11<methods>12<method name="get_text_document" deprecated="[GDScriptTextDocument] is deprecated.">13<return type="GDScriptTextDocument" />14<description>15Returns the language server's [GDScriptTextDocument] instance.16</description>17</method>18<method name="get_workspace">19<return type="GDScriptWorkspace" />20<description>21Returns the language server's [GDScriptWorkspace] instance.22</description>23</method>24<method name="initialize" deprecated="Accessing LSP endpoints directly might lead to unwanted side effects. Connect to the server via TCP, like a regular language server client.">25<return type="Dictionary" />26<param index="0" name="params" type="Dictionary" />27<description>28</description>29</method>30<method name="initialized" deprecated="Accessing LSP endpoints directly might lead to unwanted side effects. Connect to the server via TCP, like a regular language server client.">31<return type="void" />32<param index="0" name="params" type="Variant" />33<description>34</description>35</method>36<method name="is_initialized" qualifiers="const">37<return type="bool" />38<description>39Returns [code]true[/code] if the language server was initialized by a language server client, [code]false[/code] otherwise.40</description>41</method>42<method name="is_smart_resolve_enabled" qualifiers="const">43<return type="bool" />44<description>45Returns [code]true[/code] if the language server is providing the smart resolve feature, [code]false[/code] otherwise. The feature can be configured through the editor settings.46</description>47</method>48<method name="notify_client" deprecated="Might result in unwanted side effects for connected clients.">49<return type="void" />50<param index="0" name="method" type="String" />51<param index="1" name="params" type="Variant" default="null" />52<param index="2" name="client_id" type="int" default="-1" />53<description>54</description>55</method>56<method name="on_client_connected" deprecated="Might result in unwanted side effects for connected clients.">57<return type="int" enum="Error" />58<description>59</description>60</method>61<method name="on_client_disconnected" deprecated="Might result in unwanted side effects for connected clients.">62<return type="void" />63<param index="0" name="client_id" type="int" />64<description>65</description>66</method>67</methods>68</class>697071