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.