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.