:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/modules/gdscript/doc_classes/GDScriptWorkspace.xml. .. _class_GDScriptWorkspace: GDScriptWorkspace ================= **Experimental:** This class may be changed or removed in future versions. **Inherits:** :ref:`RefCounted` **<** :ref:`Object` Workspace related language server functionality. .. rst-class:: classref-introduction-group Description ----------- Provides language server functionality related to the workspace. .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`apply_new_signal`\ (\ obj\: :ref:`Object`, function\: :ref:`String`, args\: :ref:`PackedStringArray`\ ) | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`didDeleteFiles`\ (\ params\: :ref:`Dictionary`\ ) | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Dictionary` | :ref:`generate_script_api`\ (\ path\: :ref:`String`\ ) | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_file_path`\ (\ uri\: :ref:`String`\ ) | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_file_uri`\ (\ path\: :ref:`String`\ ) |const| | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`parse_local_script`\ (\ path\: :ref:`String`\ ) | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`parse_script`\ (\ path\: :ref:`String`, content\: :ref:`String`\ ) | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`publish_diagnostics`\ (\ path\: :ref:`String`\ ) | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_GDScriptWorkspace_method_apply_new_signal: .. rst-class:: classref-method |void| **apply_new_signal**\ (\ obj\: :ref:`Object`, function\: :ref:`String`, args\: :ref:`PackedStringArray`\ ) :ref:`🔗` **Deprecated:** Might result in unwanted side effects for connected clients. .. rst-class:: classref-item-separator ---- .. _class_GDScriptWorkspace_method_didDeleteFiles: .. rst-class:: classref-method |void| **didDeleteFiles**\ (\ params\: :ref:`Dictionary`\ ) :ref:`🔗` **Deprecated:** Accessing LSP endpoints directly might lead to unwanted side effects. Connect to the server via TCP, like a regular language server client. .. rst-class:: classref-item-separator ---- .. _class_GDScriptWorkspace_method_generate_script_api: .. rst-class:: classref-method :ref:`Dictionary` **generate_script_api**\ (\ path\: :ref:`String`\ ) :ref:`🔗` Returns the interface of the script in a machine-readable format. .. rst-class:: classref-item-separator ---- .. _class_GDScriptWorkspace_method_get_file_path: .. rst-class:: classref-method :ref:`String` **get_file_path**\ (\ uri\: :ref:`String`\ ) :ref:`🔗` Converts a URI to a file path. .. rst-class:: classref-item-separator ---- .. _class_GDScriptWorkspace_method_get_file_uri: .. rst-class:: classref-method :ref:`String` **get_file_uri**\ (\ path\: :ref:`String`\ ) |const| :ref:`🔗` Converts a file path to a URI. .. rst-class:: classref-item-separator ---- .. _class_GDScriptWorkspace_method_parse_local_script: .. rst-class:: classref-method :ref:`Error` **parse_local_script**\ (\ path\: :ref:`String`\ ) :ref:`🔗` **Deprecated:** Might result in unwanted side effects for connected clients. .. rst-class:: classref-item-separator ---- .. _class_GDScriptWorkspace_method_parse_script: .. rst-class:: classref-method :ref:`Error` **parse_script**\ (\ path\: :ref:`String`, content\: :ref:`String`\ ) :ref:`🔗` **Deprecated:** Might result in unwanted side effects for connected clients. .. rst-class:: classref-item-separator ---- .. _class_GDScriptWorkspace_method_publish_diagnostics: .. rst-class:: classref-method |void| **publish_diagnostics**\ (\ path\: :ref:`String`\ ) :ref:`🔗` **Deprecated:** Might result in unwanted side effects for connected clients. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)` .. |void| replace:: :abbr:`void (No return value.)`