Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

GDScriptWorkspace

Експериментальний: This class may be changed or removed in future versions.

Успадковує: RefCounted < Object

Функції мовного сервера, пов’язані з робочим простором.

Опис

Забезпечує роботу мовного сервера, пов’язаного з робочою областю.

Методи

void

apply_new_signal(obj: Object, function: String, args: PackedStringArray)

void

didDeleteFiles(params: Dictionary)

Dictionary

generate_script_api(path: String)

String

get_file_path(uri: String)

String

get_file_uri(path: String) const

Error

parse_local_script(path: String)

Error

parse_script(path: String, content: String)

void

publish_diagnostics(path: String)


Описи методів

void apply_new_signal(obj: Object, function: String, args: PackedStringArray) 🔗

Застаріло: Might result in unwanted side effects for connected clients.


void didDeleteFiles(params: Dictionary) 🔗

Застаріло: Accessing LSP endpoints directly might lead to unwanted side effects. Connect to the server via TCP, like a regular language server client.


Dictionary generate_script_api(path: String) 🔗

Повертає інтерфейс скрипта у машиночитаному форматі.


String get_file_path(uri: String) 🔗

Перетворює URI на шлях до файлу.


String get_file_uri(path: String) const 🔗

Перетворює шлях до файлу в URI.


Error parse_local_script(path: String) 🔗

Застаріло: Might result in unwanted side effects for connected clients.


Error parse_script(path: String, content: String) 🔗

Застаріло: Might result in unwanted side effects for connected clients.


void publish_diagnostics(path: String) 🔗

Застаріло: Might result in unwanted side effects for connected clients.